mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
fixed null pointer exception
This commit is contained in:
parent
407611c11b
commit
3fccf40155
2 changed files with 6 additions and 2 deletions
|
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue