Merge pull request #1772 from drmDev/master

CultOfTheWaxingMoon test for reported bug
This commit is contained in:
Derek M 2016-04-04 11:00:58 -04:00
commit e2f137d485

View file

@ -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
}
}