mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- Fix NPE in getUniqueTargets if getTarget() is null
This commit is contained in:
@@ -242,7 +242,9 @@ public class TargetSelection {
|
||||
SpellAbility child = ability;
|
||||
while (child instanceof AbilitySub) {
|
||||
child = ((AbilitySub) child).getParent();
|
||||
targets.addAll(child.getTarget().getTargets());
|
||||
if (child.getTarget() != null) {
|
||||
targets.addAll(child.getTarget().getTargets());
|
||||
}
|
||||
}
|
||||
|
||||
return targets;
|
||||
|
||||
Reference in New Issue
Block a user