From 513f5dfb7d0f8ecf772fd691ac4f049069aa426e Mon Sep 17 00:00:00 2001 From: drmDev Date: Tue, 18 Apr 2017 23:36:00 -0400 Subject: [PATCH] UT confirming bug #3167 --- .../cards/single/emn/PermeatingMassTest.java | 36 ++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/Mage.Tests/src/test/java/org/mage/test/cards/single/emn/PermeatingMassTest.java b/Mage.Tests/src/test/java/org/mage/test/cards/single/emn/PermeatingMassTest.java index e462243772..da14227d55 100644 --- a/Mage.Tests/src/test/java/org/mage/test/cards/single/emn/PermeatingMassTest.java +++ b/Mage.Tests/src/test/java/org/mage/test/cards/single/emn/PermeatingMassTest.java @@ -12,7 +12,7 @@ import org.mage.test.serverside.base.CardTestPlayerBase; /** * - * @author escplan9 (Derek Monturo - dmontur1 at gmail dot com) + * @author escplan9 */ public class PermeatingMassTest extends CardTestPlayerBase { @@ -35,4 +35,38 @@ public class PermeatingMassTest extends CardTestPlayerBase { assertPermanentCount(playerA, "Permeating Mass", 1); assertPowerToughness(playerA, "Permeating Mass", 1, 3); } + + @Test + public void damagedCreatureWithVaryingPTbecomesCopyOfPermeatingMass() { + /* + Permeating Mass {G} + Creature — Spirit - 1/3 + Whenever Permeating Mass deals combat damage to a creature, that creature becomes a copy of Permeating Mass. + */ + String pMass = "Permeating Mass"; + + /* + Dungrove Elder {2}{G} + Creature — Treefolk + Hexproof * / * + Dungrove Elder's power and toughness are each equal to the number of Forests you control. + */ + String dElder = "Dungrove Elder"; + + addCard(Zone.BATTLEFIELD, playerA, pMass); + addCard(Zone.BATTLEFIELD, playerB, "Forest", 4); + addCard(Zone.BATTLEFIELD, playerB, dElder); // 4/4 with the 4 forests + + attack(2, playerB, dElder); + block(2, playerA, pMass, dElder); + + setStopAt(2, PhaseStep.END_COMBAT); + execute(); + + assertLife(playerA, 20); + assertLife(playerB, 20); + assertGraveyardCount(playerA, pMass, 1); + assertPermanentCount(playerB, pMass, 1); // dungrove elder becomes copy of permeating mass + assertPowerToughness(playerB, "Permeating Mass", 1, 3); // and should have P/T 1/3 + } }