Updated RemoveFromCombatTest.

This commit is contained in:
LevelX2 2015-07-08 17:15:56 +02:00
parent bf16a40564
commit 072987b96d
2 changed files with 22 additions and 16 deletions

View file

@ -46,27 +46,32 @@ public class RemoveFromCombatTest extends CardTestPlayerBase {
*/
@Test
public void testLeavesCombatIfNoLongerACreature() {
addCard(Zone.BATTLEFIELD, playerA, "Mountain");
addCard(Zone.HAND, playerB, "Lightning Bolt", 1);
addCard(Zone.BATTLEFIELD, playerA, "Mountain", 4);
addCard(Zone.HAND, playerA, "Lightning Blast", 1);
addCard(Zone.BATTLEFIELD, playerB, "Mountain", 2);
addCard(Zone.BATTLEFIELD, playerB, "Elvish Mystic", 1);
// Forests you control are 1/1 green Elf creatures that are still lands.
// {1}{G}, Sacrifice an Elf: Target creature gets +3/+3 until end of turn.
// {1}{G},Sacrifice an Elf: Target creature gets +3/+3 until end of turn.
addCard(Zone.BATTLEFIELD, playerB, "Ambush Commander", 1);
addCard(Zone.BATTLEFIELD, playerB, "Stomping Ground");
attack(2, playerB, "Stomping Ground");
castSpell(2, PhaseStep.DECLARE_BLOCKERS, playerA, "Lightning Bolt", "Ambush Commander");
activateAbility(2, PhaseStep.DECLARE_ATTACKERS, playerB, "{1}{G},Sacrifice an Elf: Target creature gets +3/+3", "Stomping Ground");
castSpell(2, PhaseStep.DECLARE_BLOCKERS, playerA, "Lightning Blast", "Ambush Commander");
setStopAt(2, PhaseStep.POSTCOMBAT_MAIN);
execute();
assertLife(playerA, 20);
assertLife(playerB, 20);
assertGraveyardCount(playerA, "Lightning Bolt", 1);
assertGraveyardCount(playerB, "Elvish Mystic", 1);
assertGraveyardCount(playerA, "Lightning Blast", 1);
assertGraveyardCount(playerB, "Ambush Commander", 1);
assertPowerToughness(playerB, "Stomping Ground", 0, 0);
assertLife(playerA, 20);
assertLife(playerB, 20);
}
}