fixed null pointer exception

This commit is contained in:
Evan Kranzler 2018-09-17 16:06:47 -04:00
parent 407611c11b
commit 3fccf40155
2 changed files with 6 additions and 2 deletions

View file

@ -1236,6 +1236,8 @@ public abstract class AbilityImpl implements Ability {
@Override @Override
public void adjustTargets(Game game) { public void adjustTargets(Game game) {
this.targetAdjuster.adjustTargets(this, game); if (targetAdjuster != null) {
targetAdjuster.adjustTargets(this, game);
}
} }
} }

View file

@ -607,6 +607,8 @@ public class StackAbility extends StackObjImpl implements Ability {
@Override @Override
public void adjustTargets(Game game) { public void adjustTargets(Game game) {
this.targetAdjuster.adjustTargets(this, game); if (targetAdjuster != null) {
targetAdjuster.adjustTargets(this, game);
}
} }
} }