mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 12:02:01 -08:00
added test case of Chronozoa being destroyed with time counters on it (end case)
This commit is contained in:
parent
9b44c9a087
commit
5ebfacecb5
1 changed files with 28 additions and 6 deletions
|
|
@ -19,6 +19,9 @@ import org.mage.test.serverside.base.CardTestPlayerBase;
|
||||||
* Created by glerman on 22/6/15.
|
* Created by glerman on 22/6/15.
|
||||||
*/
|
*/
|
||||||
public class ChronozoaTest extends CardTestPlayerBase {
|
public class ChronozoaTest extends CardTestPlayerBase {
|
||||||
|
// Flying
|
||||||
|
// Vanishing 3
|
||||||
|
// When Chronozoa dies, if it had no time counters on it, put two tokens that are copies of it onto the battlefield.
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test that time counters are removed before the draw phase
|
* Test that time counters are removed before the draw phase
|
||||||
|
|
@ -26,9 +29,6 @@ public class ChronozoaTest extends CardTestPlayerBase {
|
||||||
@Test
|
@Test
|
||||||
public void testVanishing() {
|
public void testVanishing() {
|
||||||
addCard(Zone.BATTLEFIELD, playerA, "Island", 4);
|
addCard(Zone.BATTLEFIELD, playerA, "Island", 4);
|
||||||
// Flying
|
|
||||||
// Vanishing 3
|
|
||||||
// When Chronozoa dies, if it had no time counters on it, put two tokens that are copies of it onto the battlefield.
|
|
||||||
addCard(Zone.HAND, playerA, "Chronozoa");
|
addCard(Zone.HAND, playerA, "Chronozoa");
|
||||||
|
|
||||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Chronozoa");
|
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Chronozoa");
|
||||||
|
|
@ -46,9 +46,6 @@ public class ChronozoaTest extends CardTestPlayerBase {
|
||||||
@Test
|
@Test
|
||||||
public void testDuplicationEffect() {
|
public void testDuplicationEffect() {
|
||||||
addCard(Zone.BATTLEFIELD, playerA, "Island", 4);
|
addCard(Zone.BATTLEFIELD, playerA, "Island", 4);
|
||||||
// Flying
|
|
||||||
// Vanishing 3
|
|
||||||
// When Chronozoa dies, if it had no time counters on it, put two tokens that are copies of it onto the battlefield.
|
|
||||||
addCard(Zone.HAND, playerA, "Chronozoa");
|
addCard(Zone.HAND, playerA, "Chronozoa");
|
||||||
|
|
||||||
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Chronozoa");
|
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Chronozoa");
|
||||||
|
|
@ -76,4 +73,29 @@ public class ChronozoaTest extends CardTestPlayerBase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testChronozoaDestroyedWithTimeCounters() throws Exception {
|
||||||
|
addCard(Zone.BATTLEFIELD, playerA, "Island", 4);
|
||||||
|
addCard(Zone.HAND, playerA, "Chronozoa");
|
||||||
|
addCard(Zone.BATTLEFIELD, playerB, "Mountain", 1);
|
||||||
|
addCard(Zone.HAND, playerB, "Lightning Bolt");
|
||||||
|
|
||||||
|
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Chronozoa");
|
||||||
|
// Destroy Chronozoa the same phase it should duplicate -> due to stack Chronozoa is destroyed before duplication
|
||||||
|
castSpell(7, PhaseStep.UPKEEP, playerB, "Lightning Bolt", "Chronozoa");
|
||||||
|
|
||||||
|
setStopAt(7, PhaseStep.PRECOMBAT_MAIN);
|
||||||
|
execute();
|
||||||
|
|
||||||
|
// Chronozoa in gy
|
||||||
|
assertGraveyardCount(playerA, 1);
|
||||||
|
// Lightning Bolt in gt
|
||||||
|
assertGraveyardCount(playerB, 1);
|
||||||
|
|
||||||
|
// Chronozoa shouldn't duplicate
|
||||||
|
final List<Permanent> creatures = currentGame.getBattlefield().getAllActivePermanents(CardType.CREATURE);
|
||||||
|
Assert.assertTrue(creatures.isEmpty());
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue