From 3810f3ad2d889a6689708b5bc2e26323ec643880 Mon Sep 17 00:00:00 2001 From: Derek Monturo Date: Tue, 28 Mar 2017 11:08:57 -0400 Subject: [PATCH] #3002 UT confirming bug with firecat blitz --- .../abilities/keywords/FlashbackTest.java | 37 +++++++++++++++---- 1 file changed, 30 insertions(+), 7 deletions(-) diff --git a/Mage.Tests/src/test/java/org/mage/test/cards/abilities/keywords/FlashbackTest.java b/Mage.Tests/src/test/java/org/mage/test/cards/abilities/keywords/FlashbackTest.java index 2e4971fef67..92db2b6c7f9 100644 --- a/Mage.Tests/src/test/java/org/mage/test/cards/abilities/keywords/FlashbackTest.java +++ b/Mage.Tests/src/test/java/org/mage/test/cards/abilities/keywords/FlashbackTest.java @@ -100,7 +100,6 @@ public class FlashbackTest extends CardTestPlayerBase { assertPermanentCount(playerA, "Snapcaster Mage", 0); assertGraveyardCount(playerA, "Repeal", 0); assertExileCount("Repeal", 1); - } /** @@ -132,7 +131,6 @@ public class FlashbackTest extends CardTestPlayerBase { assertPermanentCount(playerA, "Snapcaster Mage", 0); assertGraveyardCount(playerA, "Blaze", 0); assertExileCount("Blaze", 1); - } /** @@ -208,7 +206,6 @@ public class FlashbackTest extends CardTestPlayerBase { assertPermanentCount(playerA, "Snapcaster Mage", 1); assertPermanentCount(playerA, "Kor Ally", 4); assertExileCount("Unified Front", 1); - } /** @@ -238,7 +235,6 @@ public class FlashbackTest extends CardTestPlayerBase { assertLife(playerB, 14); assertExileCount("Conflagrate", 1); - } /** @@ -274,7 +270,6 @@ public class FlashbackTest extends CardTestPlayerBase { assertPermanentCount(playerA, "Snapcaster Mage", 1); assertGraveyardCount(playerA, "Ancestral Vision", 1); assertHandCount(playerA, 0); - } /** @@ -364,7 +359,6 @@ public class FlashbackTest extends CardTestPlayerBase { assertTappedCount("Mountain", true, 2); assertTappedCount("Island", true, 2); assertTappedCount("Swamp", true, 2); - } @Test @@ -389,7 +383,6 @@ public class FlashbackTest extends CardTestPlayerBase { assertGraveyardCount(playerA, "Whispers of the Muse", 0); assertHandCount(playerA, 1); assertExileCount("Whispers of the Muse", 1); - } /** @@ -412,6 +405,36 @@ public class FlashbackTest extends CardTestPlayerBase { assertLife(playerB, 20); assertHandCount(playerA, 2); assertTappedCount("Island", true, 2); + } + /* + * Bug: Firecat Blitz when cast via Flashback requests sacrificing mountains twice + */ + @Test + public void firecatBlitzFlashback() { + + /* + Firecat Blitz {X}{R}{R} + Sorcery + Create X 1/1 red Elemental Cat creature tokens with haste. Exile them at the beginning of the next end step. + Flashback—{R}{R}, Sacrifice X Mountains. + */ + String fCatBlitz = "Firecat Blitz"; + String mountain = "Mountain"; + + addCard(Zone.GRAVEYARD, playerA, fCatBlitz); + addCard(Zone.BATTLEFIELD, playerA, mountain, 6); + + activateAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Flashback"); // Flashback blitz + + setChoice(playerA, "X=2"); + addTarget(playerA, mountain); + + setStopAt(1, PhaseStep.BEGIN_COMBAT); + execute(); + + assertExileCount(playerA, fCatBlitz, 1); + assertGraveyardCount(playerA, mountain, 2); + assertPermanentCount(playerA, "Elemental Cat", 2); } }