fix Grinning Totem

the exiled card wouldn't be put in its owner's graveyard if Grinning Totem
changed zones before the delayed trigger

any cards using CardUtil.getCardExileZoneId for delayed effects are likely
broken in the same way
This commit is contained in:
Neil Gentleman 2015-11-22 17:53:18 -08:00
parent 230d1d37bd
commit 085b00499c
3 changed files with 40 additions and 14 deletions

View file

@ -21,4 +21,21 @@ public class GrinningTotemTest extends CardTestPlayerBase {
assertGraveyardCount(playerB, 1); // the exiled Mountain
}
@Test
public void testCardsGoToGraveyard2() {
addCard(Zone.BATTLEFIELD, playerA, "Mountain", 2);
addCard(Zone.BATTLEFIELD, playerA, "Grinning Totem");
addCard(Zone.BATTLEFIELD, playerB, "Tormod's Crypt");
activateAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "{2},{T}, Sacrifice {this}: Search target opponent's library for a card and exile it", playerB);
activateAbility(1, PhaseStep.POSTCOMBAT_MAIN, playerB, "{T}, Sacrifice {this}: Exile all cards", playerA);
setStopAt(3, PhaseStep.BEGIN_COMBAT);
execute();
assertGraveyardCount(playerA, 0);
assertGraveyardCount(playerB, 2); // the exiled Mountain and Tormod's Crypt
}
}