mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
fixed Undead Alchemist exiling cards from zones other than graveyards
This commit is contained in:
parent
a379a06485
commit
f4896710d8
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue