From 751a9f8afca1ba0ad53e96262935c50cb5fe8097 Mon Sep 17 00:00:00 2001 From: Jeff Wadsworth Date: Tue, 3 May 2022 17:15:40 -0500 Subject: [PATCH] - added test for #8876 --- .../abilities/keywords/ForetellTest.java | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Mage.Tests/src/test/java/org/mage/test/cards/abilities/keywords/ForetellTest.java b/Mage.Tests/src/test/java/org/mage/test/cards/abilities/keywords/ForetellTest.java index 9d0e5eb547..4ed228e957 100644 --- a/Mage.Tests/src/test/java/org/mage/test/cards/abilities/keywords/ForetellTest.java +++ b/Mage.Tests/src/test/java/org/mage/test/cards/abilities/keywords/ForetellTest.java @@ -62,4 +62,24 @@ public class ForetellTest extends CardTestPlayerBase { assertGraveyardCount(playerA, "Behold the Multiverse", 1); // now in graveyard assertHandCount(playerA, 2); // 2 cards drawn } + + @Test + public void testDreamDevourerTrigger() { + // Issue #8876 + setStrictChooseMode(true); + addCard(Zone.BATTLEFIELD, playerA, "Dream Devourer", 1); // if a card is foretelled, this gets +2 power + addCard(Zone.BATTLEFIELD, playerA, "Mountain", 5); // 3 mana for suspend and 2 for foretell + addCard(Zone.HAND, playerA, "Sol Talisman", 1); // Suspend card + addCard(Zone.HAND, playerA, "Lightning Bolt", 1); // card to foretell + + activateAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Susp"); // suspend the Sol Talisman + activateAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Fore"); // foretell the Lightning Bolt + setStopAt(1, PhaseStep.POSTCOMBAT_MAIN); + execute(); + + assertAllCommandsUsed(); + assertExileCount(playerA, "Sol Talisman", 1); // suspend card in exile + assertExileCount(playerA, "Lightning Bolt", 1); // foretold card in exile + assertPowerToughness(playerA, "Dream Devourer", 2, 3); // +2 power boost from trigger due to foretell of Lightning Bolt + } }