From c97039366d156cd9acaadfe7b2139c42ffce37f4 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Thu, 24 Feb 2022 08:58:18 -0500 Subject: [PATCH] added an additional test for conspire --- .../abilities/keywords/ConspireTest.java | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/Mage.Tests/src/test/java/org/mage/test/cards/abilities/keywords/ConspireTest.java b/Mage.Tests/src/test/java/org/mage/test/cards/abilities/keywords/ConspireTest.java index 617b7a1864..f386b7a2fa 100644 --- a/Mage.Tests/src/test/java/org/mage/test/cards/abilities/keywords/ConspireTest.java +++ b/Mage.Tests/src/test/java/org/mage/test/cards/abilities/keywords/ConspireTest.java @@ -105,6 +105,41 @@ public class ConspireTest extends CardTestPlayerBase { } + @Test + public void testWortTheRaidmotherTwoSpells() { + addCard(Zone.BATTLEFIELD, playerA, "Mountain", 8); + addCard(Zone.BATTLEFIELD, playerA, "Raging Goblin", 2); + // When Wort, the Raidmother enters the battlefield, put two 1/1 red and green Goblin Warrior creature tokens onto the battlefield. + // Each red or green instant or sorcery spell you cast has conspire. + // (As you cast the spell, you may tap two untapped creatures you control that share a color with it. When you do, copy it and you may choose new targets for the copy.) + addCard(Zone.HAND, playerA, "Wort, the Raidmother"); + addCard(Zone.HAND, playerA, "Lightning Bolt"); + addCard(Zone.HAND, playerA, "Shock"); + + // prepare goblins + castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Wort, the Raidmother");// {4}{R/G}{R/G} + + // cast with conspire + castSpell(1, PhaseStep.POSTCOMBAT_MAIN, playerA, "Lightning Bolt", playerB); + setChoice(playerA, true); // use conspire + setChoice(playerA, "Goblin Warrior"); + setChoice(playerA, "Goblin Warrior"); + setChoice(playerA, false); // keep targets + castSpell(1, PhaseStep.POSTCOMBAT_MAIN, playerA, "Shock", playerB); + setChoice(playerA, false); // don't use conspire + + setStrictChooseMode(true); + setStopAt(1, PhaseStep.END_TURN); + execute(); + assertAllCommandsUsed(); + + assertPermanentCount(playerA, "Wort, the Raidmother", 1); + assertGraveyardCount(playerA, "Lightning Bolt", 1); + assertTapped("Raging Goblin", false); + assertLife(playerB, 20 - 3 - 3 - 2); + + } + @Test public void testWortTheRaidmotherWithConspireSpellOnce() { addCard(Zone.BATTLEFIELD, playerA, "Mountain", 10);