mirror of
https://github.com/magefree/mage.git
synced 2026-01-25 04:39:18 -08:00
Fix and test token saga zcc tracking
This commit is contained in:
parent
4683e5c05a
commit
2552dcf633
2 changed files with 73 additions and 1 deletions
|
|
@ -79,4 +79,73 @@ public class ThePrincessTakesFlightTest extends CardTestPlayerBase {
|
|||
assertPermanentCount(playerA, "Memnite", 1);
|
||||
assertGraveyardCount(playerA, flight, 1);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void test_TokenCopy() {
|
||||
addCard(Zone.HAND, playerA, flight, 1);
|
||||
addCard(Zone.HAND, playerA, "Swords to Plowshares", 1);
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Grizzly Bears", 1);
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Ondu Spiritdancer", 1);
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Memnite", 1);
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Plains", 4);
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, flight);
|
||||
setChoice(playerA, "I - ");
|
||||
addTarget(playerA, "Memnite");
|
||||
setChoice(playerA, true);
|
||||
addTarget(playerA, "Grizzly Bears");
|
||||
|
||||
checkExileCount("after I, exiled Memnite", 1, PhaseStep.POSTCOMBAT_MAIN, playerB, "Memnite", 1);
|
||||
checkExileCount("after I, exiled Grizzly Bears", 1, PhaseStep.POSTCOMBAT_MAIN, playerB, "Grizzly Bears", 1);
|
||||
|
||||
castSpell(2, PhaseStep.PRECOMBAT_MAIN, playerA, "Swords to Plowshares", "Ondu Spiritdancer");
|
||||
|
||||
// turn 3
|
||||
setChoice(playerA, "II - ");
|
||||
// No targets available
|
||||
|
||||
// turn 5
|
||||
setChoice(playerA, "III - ");
|
||||
setStrictChooseMode(true);
|
||||
setStopAt(5, PhaseStep.POSTCOMBAT_MAIN);
|
||||
execute();
|
||||
|
||||
assertExileCount(playerA, "Grizzly Bears", 0);
|
||||
assertExileCount(playerB, "Memnite", 0);
|
||||
assertPermanentCount(playerA, "Grizzly Bears", 1);
|
||||
assertPermanentCount(playerB, "Memnite", 1);
|
||||
}
|
||||
@Test
|
||||
public void test_SpellCopy() {
|
||||
addCard(Zone.HAND, playerA, flight, 1);
|
||||
addCard(Zone.HAND, playerA, "Swords to Plowshares", 1);
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Grizzly Bears", 1);
|
||||
addCard(Zone.BATTLEFIELD, playerA, "The Sixth Doctor", 1);
|
||||
addCard(Zone.BATTLEFIELD, playerB, "Memnite", 1);
|
||||
addCard(Zone.BATTLEFIELD, playerA, "Plains", 4);
|
||||
|
||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, flight);
|
||||
addTarget(playerA, "Memnite");
|
||||
addTarget(playerA, "Grizzly Bears");
|
||||
|
||||
checkExileCount("after I, exiled Memnite", 1, PhaseStep.POSTCOMBAT_MAIN, playerB, "Memnite", 1);
|
||||
checkExileCount("after I, exiled Grizzly Bears", 1, PhaseStep.POSTCOMBAT_MAIN, playerB, "Grizzly Bears", 1);
|
||||
|
||||
castSpell(2, PhaseStep.PRECOMBAT_MAIN, playerA, "Swords to Plowshares", "The Sixth Doctor");
|
||||
|
||||
// turn 3
|
||||
setChoice(playerA, "II - ");
|
||||
// No targets available
|
||||
|
||||
// turn 5
|
||||
setChoice(playerA, "III - ");
|
||||
setStrictChooseMode(true);
|
||||
setStopAt(5, PhaseStep.POSTCOMBAT_MAIN);
|
||||
execute();
|
||||
|
||||
assertExileCount(playerA, "Grizzly Bears", 0);
|
||||
assertExileCount(playerB, "Memnite", 0);
|
||||
assertPermanentCount(playerA, "Grizzly Bears", 1);
|
||||
assertPermanentCount(playerB, "Memnite", 1);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue