From df1b931014f11814eb9ecf104077c7a4a05d2d5d Mon Sep 17 00:00:00 2001 From: drmDev Date: Mon, 4 Apr 2016 11:00:34 -0400 Subject: [PATCH] CultOfTheWaxingMoon test for reported bug --- .../abilities/keywords/TransformTest.java | 26 ++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/Mage.Tests/src/test/java/org/mage/test/cards/abilities/keywords/TransformTest.java b/Mage.Tests/src/test/java/org/mage/test/cards/abilities/keywords/TransformTest.java index e1a6b44e2f..9edca384c1 100644 --- a/Mage.Tests/src/test/java/org/mage/test/cards/abilities/keywords/TransformTest.java +++ b/Mage.Tests/src/test/java/org/mage/test/cards/abilities/keywords/TransformTest.java @@ -152,7 +152,31 @@ public class TransformTest extends CardTestPlayerBase { assertPermanentCount(playerA, "Autumnal Gloom", 0); assertPermanentCount(playerA, "Ancient of the Equinox", 1); - } + /** + * 4G + * Creature - Human Shaman + * Whenever a permanent you control transforms into a non-Human creature, put a 2/2 green Wolf creature token onto the battlefield. + * + * Reported bug: "It appears to trigger either when a non-human creature transforms OR when a creature transforms from a non-human + * into a human (as in when a werewolf flips back to the sun side), rather than when a creature transforms into a non-human, + * as is the intended function and wording of the card." + */ + @Test + public void testCultOfTheWaxingMoon() { + + addCard(Zone.BATTLEFIELD, playerA, "Cult of the Waxing Moon"); + // {1}{G} - Human Werewolf + // At the beginning of each upkeep, if no spells were cast last turn, transform Hinterland Logger. + addCard(Zone.BATTLEFIELD, playerA, "Hinterland Logger"); + + // At the beginning of each upkeep, if a player cast two or more spells last turn, transform Timber Shredder. + setStopAt(2, PhaseStep.DRAW); + execute(); + + assertPermanentCount(playerA, "Cult of the Waxing Moon", 1); + assertPermanentCount(playerA, "Timber Shredder", 1); // Night-side card of Hinterland Logger, Werewolf (non-human) + assertPermanentCount(playerA, "Wolf", 1); // wolf token created + } }