mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 10:40:06 -08:00
fix BarrogoyfTest after optional fix
This commit is contained in:
parent
debe497f63
commit
239f75fc8d
1 changed files with 24 additions and 0 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue