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