mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
Two tests for Public Execution to check interaction with LoseAbility and Clone effects
This commit is contained in:
parent
ed0af0faee
commit
7d7f0e6dec
2 changed files with 41 additions and 0 deletions
|
@ -68,4 +68,25 @@ public class CloneTest extends CardTestPlayerBase {
|
|||
assertLife(playerA, 18);
|
||||
assertLife(playerB, 20);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testCard3() {
|
||||
addCard(Constants.Zone.BATTLEFIELD, playerA, "Island", 6);
|
||||
addCard(Constants.Zone.BATTLEFIELD, playerA, "Swamp", 6);
|
||||
addCard(Constants.Zone.HAND, playerA, "Public Execution");
|
||||
addCard(Constants.Zone.HAND, playerA, "Clone");
|
||||
|
||||
addCard(Constants.Zone.BATTLEFIELD, playerB, "Llanowar Elves");
|
||||
addCard(Constants.Zone.BATTLEFIELD, playerB, "Craw Wurm");
|
||||
|
||||
castSpell(1, Constants.PhaseStep.PRECOMBAT_MAIN, playerA, "Public Executio", "Llanowar Elves");
|
||||
castSpell(1, Constants.PhaseStep.POSTCOMBAT_MAIN, playerA, "Clone");
|
||||
|
||||
setStopAt(1, Constants.PhaseStep.END_TURN);
|
||||
execute();
|
||||
|
||||
assertPermanentCount(playerB, "Llanowar Elves", 0);
|
||||
assertPowerToughness(playerB, "Craw Wurm", 4, 4);
|
||||
assertPowerToughness(playerA, "Craw Wurm", 6, 4);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -58,4 +58,24 @@ public class TurnToFrogTest extends CardTestPlayerBase {
|
|||
assertCounterCount("Raging Ravine", CounterType.P1P1, 1);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testCard3() {
|
||||
addCard(Constants.Zone.BATTLEFIELD, playerA, "Island", 6);
|
||||
addCard(Constants.Zone.BATTLEFIELD, playerA, "Swamp", 6);
|
||||
addCard(Constants.Zone.HAND, playerA, "Public Execution");
|
||||
addCard(Constants.Zone.HAND, playerA, "Turn to Frog");
|
||||
|
||||
addCard(Constants.Zone.BATTLEFIELD, playerB, "Llanowar Elves");
|
||||
addCard(Constants.Zone.BATTLEFIELD, playerB, "Craw Wurm");
|
||||
|
||||
castSpell(1, Constants.PhaseStep.PRECOMBAT_MAIN, playerA, "Public Executio", "Llanowar Elves");
|
||||
castSpell(1, Constants.PhaseStep.POSTCOMBAT_MAIN, playerA, "Turn to Frog", "Craw Wurm");
|
||||
|
||||
setStopAt(1, Constants.PhaseStep.END_TURN);
|
||||
execute();
|
||||
|
||||
assertPermanentCount(playerB, "Llanowar Elves", 0);
|
||||
assertPowerToughness(playerB, "Craw Wurm", -1, 1);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue