fixed Undead Alchemist exiling cards from zones other than graveyards

This commit is contained in:
Evan Kranzler 2020-06-25 20:21:35 -04:00
parent a379a06485
commit f4896710d8

View file

@ -79,7 +79,9 @@ class UndeadAlchemistTriggeredAbility extends TriggeredAbilityImpl {
if (zEvent.getFromZone() == Zone.LIBRARY && zEvent.getToZone() == Zone.GRAVEYARD && game.getOpponents(this.getControllerId()).contains(zEvent.getPlayerId())) {
Card card = game.getCard(event.getTargetId());
if (card != null && card.isCreature()) {
this.getEffects().get(0).setTargetPointer(new FixedTarget(card.getId()));
if (game.getState().getZone(card.getId()) == Zone.GRAVEYARD) {
this.getEffects().get(0).setTargetPointer(new FixedTarget(card, game));
}
return true;
}
}