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