From 7205144c957f9c503240ce4cfee20b678bb027b6 Mon Sep 17 00:00:00 2001 From: drmDev Date: Wed, 3 Aug 2016 18:09:50 -0400 Subject: [PATCH] Hearthcage Giant test confirms bug #2141 --- .../EntersTheBattlefieldTriggerTest.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Mage.Tests/src/test/java/org/mage/test/cards/triggers/EntersTheBattlefieldTriggerTest.java b/Mage.Tests/src/test/java/org/mage/test/cards/triggers/EntersTheBattlefieldTriggerTest.java index 36a23246fb..6ab63a3331 100644 --- a/Mage.Tests/src/test/java/org/mage/test/cards/triggers/EntersTheBattlefieldTriggerTest.java +++ b/Mage.Tests/src/test/java/org/mage/test/cards/triggers/EntersTheBattlefieldTriggerTest.java @@ -341,4 +341,21 @@ public class EntersTheBattlefieldTriggerTest extends CardTestPlayerBase { assertPowerToughness(playerB, "Carnivorous Plant", 1, 2); assertPowerToughness(playerA, "Carnivorous Plant", -1, 2); } + + @Test + public void testHearthcageGiant() { + // {6}{R}{R} Creature — Giant Warrior + //When Hearthcage Giant enters the battlefield, put two 3/1 red Elemental Shaman creature tokens onto the battlefield. + //Sacrifice an Elemental: Target Giant creature gets +3/+1 until end of turn. + addCard(Zone.HAND,playerA,"Hearthcage Giant"); + addCard(Zone.BATTLEFIELD, playerA, "Mountain", 8); + + castSpell(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Hearthcage Giant"); + setStopAt(1, PhaseStep.BEGIN_COMBAT); + execute(); + + assertPermanentCount(playerA, "Hearthcage Giant", 1); + assertPermanentCount(playerA, "Elemental Shaman", 2); + assertPowerToughness(playerA, "Elemental Shaman", 3, 1); + } }