From 15fba941efa6dab47acd3b24c81ab5fa8ad214a6 Mon Sep 17 00:00:00 2001 From: Derek Monturo Date: Mon, 17 Apr 2017 11:11:48 -0400 Subject: [PATCH] fixes #3124 and unit test for #3125 duplicating issue --- .../src/mage/cards/b/BontuTheGlorified.java | 2 +- .../abilities/keywords/FlashbackTest.java | 35 +++++++++++++++++++ 2 files changed, 36 insertions(+), 1 deletion(-) diff --git a/Mage.Sets/src/mage/cards/b/BontuTheGlorified.java b/Mage.Sets/src/mage/cards/b/BontuTheGlorified.java index a0748bad7d5..5ba3a53b97b 100644 --- a/Mage.Sets/src/mage/cards/b/BontuTheGlorified.java +++ b/Mage.Sets/src/mage/cards/b/BontuTheGlorified.java @@ -68,7 +68,7 @@ public class BontuTheGlorified extends CardImpl { } public BontuTheGlorified(UUID ownerId, CardSetInfo setInfo) { - super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{B}"); + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{B}"); addSuperType(SuperType.LEGENDARY); this.subtype.add("God"); this.power = new MageInt(4); 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 54e9d836173..16c1cd1f83b 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 @@ -437,4 +437,39 @@ public class FlashbackTest extends CardTestPlayerBase { assertPermanentCount(playerA, "Elemental Cat", 1); assertGraveyardCount(playerA, mountain, 1); } + + /* + * Reported bug: Battle Screech doesn't flashback (i get the pop up to choose flashback, tap the creatures and nothing happens) + */ + @Test + public void battleScreechFlashback() { + + /* + Battle Screech {2}{W}{W} + Sorcery + Create two 1/1 white Bird creature tokens with flying. + Flashback—Tap three untapped white creatures you control. + */ + String bScreech = "Battle Screech"; + String eVanguard = "Elite Vanguard"; // {W} 2/1 + String yOx = "Yoked Ox"; // {W} 0/4 + String wKnight = "White Knight"; // {W}{W} 2/2 + + addCard(Zone.GRAVEYARD, playerA, bScreech); + addCard(Zone.BATTLEFIELD, playerA, eVanguard); + addCard(Zone.BATTLEFIELD, playerA, yOx); + addCard(Zone.BATTLEFIELD, playerA, wKnight); + + activateAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Flashback"); // Flashback Battle Screech + addTarget(playerA, eVanguard + '^' + yOx + '^' + wKnight); + + setStopAt(1, PhaseStep.BEGIN_COMBAT); + execute(); + + assertTapped(eVanguard, true); + assertTapped(yOx, true); + assertTapped(wKnight, true); + assertExileCount(playerA, bScreech, 1); // this fails, but the creatures are tapped as part of paying the cost + assertPermanentCount(playerA, "Bird", 2); // if you comment out the above line, this is failing as well + } }