Fixed random test fail (Oath)

This commit is contained in:
Oleg Agafonov 2020-07-10 14:34:18 +04:00
parent 4598d7efb0
commit 589866c6a6

View file

@ -138,8 +138,8 @@ public class OathOfLiegesTest extends CardTestPlayerBase {
// turn 1 - A // turn 1 - A
// cast oath A // cast oath A
activateManaAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "{T}: Add {W}", 4);
castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Replenish"); castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Replenish");
// showBattlefield("A perms", 1, PhaseStep.POSTCOMBAT_MAIN, playerA);
// cast oath copy // cast oath copy
castSpell(1, PhaseStep.POSTCOMBAT_MAIN, playerA, "Copy Enchantment"); castSpell(1, PhaseStep.POSTCOMBAT_MAIN, playerA, "Copy Enchantment");
setChoice(playerA, "Yes"); // use copy effect setChoice(playerA, "Yes"); // use copy effect
@ -200,10 +200,6 @@ public class OathOfLiegesTest extends CardTestPlayerBase {
// cast oath A // cast oath A
castSpell(2, PhaseStep.PRECOMBAT_MAIN, playerA, "Replenish"); castSpell(2, PhaseStep.PRECOMBAT_MAIN, playerA, "Replenish");
// cast oath copy by opponent // cast oath copy by opponent
// showBattlefield("A perms", 2, PhaseStep.POSTCOMBAT_MAIN, playerA);
// showBattlefield("B perms", 2, PhaseStep.POSTCOMBAT_MAIN, playerB);
// showAvailableAbilities("B abils", 2, PhaseStep.POSTCOMBAT_MAIN, playerB);
// showHand("B hand", 2, PhaseStep.POSTCOMBAT_MAIN, playerB);
castSpell(2, PhaseStep.POSTCOMBAT_MAIN, playerB, "Copy Enchantment"); castSpell(2, PhaseStep.POSTCOMBAT_MAIN, playerB, "Copy Enchantment");
setChoice(playerB, "Yes"); // use copy effect setChoice(playerB, "Yes"); // use copy effect
setChoice(playerB, "Oath of Lieges"); // target for copy setChoice(playerB, "Oath of Lieges"); // target for copy
@ -211,7 +207,6 @@ public class OathOfLiegesTest extends CardTestPlayerBase {
checkPermanentCount("B have 1 oath", 2, PhaseStep.END_TURN, playerA, "Oath of Lieges", 1); checkPermanentCount("B have 1 oath", 2, PhaseStep.END_TURN, playerA, "Oath of Lieges", 1);
checkPermanentCount("A have 10 plains", 2, PhaseStep.END_TURN, playerA, "Plains", 10); checkPermanentCount("A have 10 plains", 2, PhaseStep.END_TURN, playerA, "Plains", 10);
checkPermanentCount("B have 12 plains", 2, PhaseStep.END_TURN, playerB, "Plains", 12); checkPermanentCount("B have 12 plains", 2, PhaseStep.END_TURN, playerB, "Plains", 12);
// showLibrary("lib B", 2, PhaseStep.END_TURN, playerB);
// turn 3 - A // turn 3 - A
// oath A triggers for A and activates // oath A triggers for A and activates