fix Skizzik to intervening if, add test

This commit is contained in:
xenohedron 2024-06-19 23:12:29 -04:00
parent 78edb6a65c
commit 8caa8ccee4
2 changed files with 61 additions and 6 deletions

View file

@ -767,4 +767,51 @@ public class KickerTest extends CardTestPlayerBase {
assertPowerToughness(playerA, scourge, 10, 10);
}
@Test
public void testSkizzikNotKicked() {
String skizzik = "Skizzik"; // 3R Creature 5/3 trample haste
// Kicker {R} At the beginning of the end step, if Skizzik wasnt kicked, sacrifice it.
addCard(Zone.BATTLEFIELD, playerA, "Mountain", 4);
addCard(Zone.HAND, playerA, skizzik);
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, skizzik);
setChoice(playerA, false); // not kicked
attack(1, playerA, skizzik, playerB);
setStrictChooseMode(true);
setStopAt(2, PhaseStep.UPKEEP);
execute();
assertLife(playerA, 20);
assertLife(playerB, 15);
assertPermanentCount(playerA, skizzik, 0);
assertGraveyardCount(playerA, skizzik, 1);
}
@Test
public void testSkizzikKicked() {
String skizzik = "Skizzik"; // 3R Creature 5/3 trample haste
// Kicker {R} At the beginning of the end step, if Skizzik wasnt kicked, sacrifice it.
addCard(Zone.BATTLEFIELD, playerA, "Mountain", 5);
addCard(Zone.HAND, playerA, skizzik);
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, skizzik);
setChoice(playerA, true);
attack(1, playerA, skizzik, playerB);
setStrictChooseMode(true);
setStopAt(2, PhaseStep.UPKEEP);
execute();
assertLife(playerA, 20);
assertLife(playerB, 15);
assertPermanentCount(playerA, skizzik, 1);
assertGraveyardCount(playerA, skizzik, 0);
assertTappedCount("Mountain", true, 5);
}
}