fix BarrogoyfTest after optional fix

This commit is contained in:
Susucre 2024-05-31 11:07:33 +02:00
parent debe497f63
commit 239f75fc8d

View file

@ -31,6 +31,7 @@ public class BarrowgoyfTest extends CardTestPlayerBase {
addCard(Zone.LIBRARY, playerA, "Plains"); addCard(Zone.LIBRARY, playerA, "Plains");
attack(1, playerA, barrowgoyf, playerB); attack(1, playerA, barrowgoyf, playerB);
setChoice(playerA, true);
setChoice(playerA, "Baneslayer Angel"); // return this to hand. setChoice(playerA, "Baneslayer Angel"); // return this to hand.
setStopAt(1, PhaseStep.POSTCOMBAT_MAIN); setStopAt(1, PhaseStep.POSTCOMBAT_MAIN);
@ -42,6 +43,27 @@ public class BarrowgoyfTest extends CardTestPlayerBase {
assertPowerToughness(playerA, barrowgoyf, 3, 4); assertPowerToughness(playerA, barrowgoyf, 3, 4);
} }
@Test
public void test_Simple_NoMill() {
setStrictChooseMode(true);
skipInitShuffling();
addCard(Zone.BATTLEFIELD, playerA, barrowgoyf);
addCard(Zone.GRAVEYARD, playerB, "Bitterblossom"); // Tribal Enchantment
addCard(Zone.LIBRARY, playerA, "Baneslayer Angel");
addCard(Zone.LIBRARY, playerA, "Plains");
attack(1, playerA, barrowgoyf, playerB);
setChoice(playerA, false);
setStopAt(1, PhaseStep.POSTCOMBAT_MAIN);
execute();
assertLife(playerB, 20 - 2);
assertGraveyardCount(playerA, 0);
assertPowerToughness(playerA, barrowgoyf, 2, 3);
}
@Test @Test
public void test_Simple_NoReturn() { public void test_Simple_NoReturn() {
setStrictChooseMode(true); setStrictChooseMode(true);
@ -53,6 +75,7 @@ public class BarrowgoyfTest extends CardTestPlayerBase {
addCard(Zone.LIBRARY, playerA, "Plains"); addCard(Zone.LIBRARY, playerA, "Plains");
attack(1, playerA, barrowgoyf, playerB); attack(1, playerA, barrowgoyf, playerB);
setChoice(playerA, true);
setChoice(playerA, TestPlayer.CHOICE_SKIP); // decide to not return. setChoice(playerA, TestPlayer.CHOICE_SKIP); // decide to not return.
setStopAt(1, PhaseStep.POSTCOMBAT_MAIN); setStopAt(1, PhaseStep.POSTCOMBAT_MAIN);
@ -76,6 +99,7 @@ public class BarrowgoyfTest extends CardTestPlayerBase {
addCard(Zone.LIBRARY, playerA, "Invasion of Zendikar"); addCard(Zone.LIBRARY, playerA, "Invasion of Zendikar");
attack(1, playerA, barrowgoyf, playerB); attack(1, playerA, barrowgoyf, playerB);
setChoice(playerA, true);
setChoice(playerA, TestPlayer.CHOICE_SKIP); // decide to not return. There was no choice anyway. setChoice(playerA, TestPlayer.CHOICE_SKIP); // decide to not return. There was no choice anyway.
setStopAt(1, PhaseStep.POSTCOMBAT_MAIN); setStopAt(1, PhaseStep.POSTCOMBAT_MAIN);