mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
- CheckStyle.
This commit is contained in:
@@ -595,7 +595,7 @@ public class AbilityFactory {
|
|||||||
final SpellAbility saTargeting = (ability.getTarget() == null) ? ability.getParentTargetingPlayer() : ability;
|
final SpellAbility saTargeting = (ability.getTarget() == null) ? ability.getParentTargetingPlayer() : ability;
|
||||||
if (saTargeting.getTarget() != null) {
|
if (saTargeting.getTarget() != null) {
|
||||||
SpellAbility loopSA = saTargeting;
|
SpellAbility loopSA = saTargeting;
|
||||||
while(loopSA != null) {
|
while (loopSA != null) {
|
||||||
objects.addAll(saTargeting.getTarget().getTargets());
|
objects.addAll(saTargeting.getTarget().getTargets());
|
||||||
loopSA = loopSA.getSubAbility();
|
loopSA = loopSA.getSubAbility();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user