mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
[ZNR] fixed Skyclave Pickaxe null pointer exception (fixes #7081)
This commit is contained in:
parent
be3834e762
commit
b39423914e
1 changed files with 2 additions and 2 deletions
|
@ -73,11 +73,11 @@ class SkyclavePickAxeEffect extends OneShotEffect {
|
|||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Permanent permanent = game.getPermanentOrLKIBattlefield(source.getSourceId());
|
||||
if (permanent == null) {
|
||||
if (permanent == null || game.getPermanent(permanent.getAttachedTo()) == null) {
|
||||
return false;
|
||||
}
|
||||
game.addEffect(new BoostTargetEffect(2, 2).setTargetPointer(
|
||||
new FixedTarget(game.getPermanent(permanent.getAttachedTo()), game)
|
||||
new FixedTarget(permanent.getAttachedTo(), game)
|
||||
), source);
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue