[ZNR] fixed Nahiri, Heir of the Ancients not attaching an equipment (#7046)

This commit is contained in:
Evan Kranzler 2020-09-16 17:15:18 -04:00
parent 58799ba270
commit 317595346d

View file

@ -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;
} }
} }