diff --git a/Mage.Sets/src/mage/sets/eldritchmoon/TreeOfPerdition.java b/Mage.Sets/src/mage/sets/eldritchmoon/TreeOfPerdition.java index 9e0b05f8d8..b3d1a641c4 100644 --- a/Mage.Sets/src/mage/sets/eldritchmoon/TreeOfPerdition.java +++ b/Mage.Sets/src/mage/sets/eldritchmoon/TreeOfPerdition.java @@ -105,7 +105,6 @@ class TreeOfPerditionEffect extends OneShotEffect { return false; } opponent.setLife(amount, game); - perm.getPower().modifyBaseValue(life); perm.getToughness().modifyBaseValue(life); // game.addEffect(new SetPowerToughnessSourceEffect(Integer.MIN_VALUE, life, Duration.Custom, SubLayer.SetPT_7b), source); return true; diff --git a/Mage.Tests/src/test/java/org/mage/test/cards/single/emn/TreeOfPerditionTest.java b/Mage.Tests/src/test/java/org/mage/test/cards/single/emn/TreeOfPerditionTest.java index 2053c7c7df..bc885b59f0 100644 --- a/Mage.Tests/src/test/java/org/mage/test/cards/single/emn/TreeOfPerditionTest.java +++ b/Mage.Tests/src/test/java/org/mage/test/cards/single/emn/TreeOfPerditionTest.java @@ -49,4 +49,30 @@ public class TreeOfPerditionTest extends CardTestPlayerBase { assertLife(playerB, 13); assertPowerToughness(playerA, "Tree of Perdition", 0, 13); } + + /* + Reported bug: Tree of Perdition is gaining both power and toughness equal to opponent's life total + instead of just toughness equal to it. + */ + @Test + public void testTreeOfPerditionOnlyGainsToughnessEqualToLife() { + + /* + Tree of Perdition - {3}{B} - Creature Plant - 0/13 + Defender + Tap: Exchange target opponent's life total with Tree of Perdition's toughness. + */ + addCard(Zone.BATTLEFIELD, playerA, "Tree of Perdition"); + addCard(Zone.BATTLEFIELD, playerA, "Swamp", 4); + + activateAbility(1, PhaseStep.PRECOMBAT_MAIN, playerA, "{T}:"); + addTarget(playerA, playerB); + + setStopAt(1, PhaseStep.BEGIN_COMBAT); + execute(); + + assertLife(playerA, 20); + assertLife(playerB, 13); + assertPowerToughness(playerA, "Tree of Perdition", 0, 20); + } }