also test Kessig Forgemaster

the other face of that card has a similar ability that needs fixing
This commit is contained in:
goblin 2017-01-27 00:20:47 +01:00
parent ae8e121e90
commit 0f9ede42bd

View file

@ -43,7 +43,7 @@ public class FlameheartWerewolfTest extends CardTestPlayerBase {
assertPermanentCount(playerB, "Kalitas, Traitor of Ghet", 0); assertPermanentCount(playerB, "Kalitas, Traitor of Ghet", 0);
assertGraveyardCount(playerB, "Kalitas, Traitor of Ghet", 1); assertGraveyardCount(playerB, "Kalitas, Traitor of Ghet", 1);
} }
@Test @Test
public void testBlockedByTwo22s() { public void testBlockedByTwo22s() {
addCard(Zone.BATTLEFIELD, playerA, "Flameheart Werewolf"); addCard(Zone.BATTLEFIELD, playerA, "Flameheart Werewolf");
@ -71,4 +71,32 @@ public class FlameheartWerewolfTest extends CardTestPlayerBase {
assertPermanentCount(playerB, "Wind Drake", 0); assertPermanentCount(playerB, "Wind Drake", 0);
assertGraveyardCount(playerB, "Wind Drake", 1); assertGraveyardCount(playerB, "Wind Drake", 1);
} }
@Test
public void testKessigForgemaster() {
addCard(Zone.BATTLEFIELD, playerA, "Kessig Forgemaster");
// Both 1/1 creatures should die before the combat starts
addCard(Zone.BATTLEFIELD, playerB, "Wily Bandar");
addCard(Zone.BATTLEFIELD, playerB, "Stern Constable");
attack(3, playerA, "Kessig Forgemaster");
block(3, playerB, "Wily Bandar", "Flameheart Werewolf");
block(3, playerB, "Stern Constable", "Flameheart Werewolf");
setStopAt(3, PhaseStep.POSTCOMBAT_MAIN);
execute();
// Kessig Forgemaster was blocked, no trample
assertLife(playerA, 20);
assertLife(playerB, 20);
// both 1/1s should die before they had a chance to deal damage
// to Kessig Forgemaster
assertPermanentCount(playerA, "Kessig Forgemaster", 1);
assertGraveyardCount(playerA, "Kessig Forgemaster", 0);
assertPermanentCount(playerB, "Wily Bandar", 0);
assertGraveyardCount(playerB, "Wily Bandar", 1);
assertPermanentCount(playerB, "Stern Constable", 0);
assertGraveyardCount(playerB, "Stern Constable", 1);
}
} }