mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
[ZNR] fixed Nahiri, Heir of the Ancients not attaching an equipment (#7046)
This commit is contained in:
parent
58799ba270
commit
317595346d
1 changed files with 1 additions and 4 deletions
|
@ -140,10 +140,7 @@ class NahiriHeirOfTheAncientsEffect extends OneShotEffect {
|
||||||
TargetPermanent target = new TargetPermanent(filter);
|
TargetPermanent target = new TargetPermanent(filter);
|
||||||
target.setNotTarget(true);
|
target.setNotTarget(true);
|
||||||
player.choose(outcome, target, source.getSourceId(), game);
|
player.choose(outcome, target, source.getSourceId(), game);
|
||||||
Permanent equipment = game.getPermanent(target.getFirstTarget());
|
tokenCreature.addAttachment(target.getFirstTarget(), game);
|
||||||
if (equipment != null && tokenCreature != null) {
|
|
||||||
equipment.attachTo(tokenCreature.getId(), game);
|
|
||||||
}
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue