mirror of
https://github.com/magefree/mage.git
synced 2026-01-17 17:06:45 -08:00
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:
parent
230d1d37bd
commit
085b00499c
3 changed files with 40 additions and 14 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue