From e87727dd763cf3ca4c5df4e47970908a14df6ca6 Mon Sep 17 00:00:00 2001 From: markedagain Date: Wed, 24 Feb 2016 12:25:39 -0500 Subject: [PATCH] fixed wrong calculation for wurm --- Mage.Sets/src/mage/sets/iceage/JohtullWurm.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Mage.Sets/src/mage/sets/iceage/JohtullWurm.java b/Mage.Sets/src/mage/sets/iceage/JohtullWurm.java index d8e1577e167..345a9a1ac7a 100644 --- a/Mage.Sets/src/mage/sets/iceage/JohtullWurm.java +++ b/Mage.Sets/src/mage/sets/iceage/JohtullWurm.java @@ -54,9 +54,10 @@ public class JohtullWurm extends CardImpl { this.toughness = new MageInt(6); // Whenever Johtull Wurm becomes blocked, it gets -2/-1 until end of turn for each creature blocking it beyond the first. - DynamicValue toughnessValue = new MultipliedValue(new BlockedCreatureCount(),2); - int value = Math.negateExact(Integer.parseInt(toughnessValue.toString()) - 1); - + DynamicValue blockedCreatureCount = new BlockedCreatureCount(); + int value = Math.negateExact(Integer.parseInt(blockedCreatureCount.toString()) - 1); + int powerValue = value * 2; + Effect effect = new BoostSourceEffect(powerValue, value, Duration.EndOfTurn); effect.setText("it gets -2/-1 until end of turn for each creature blocking it beyond the first"); this.addAbility(new BecomesBlockedTriggeredAbility(effect, false)); @@ -70,4 +71,4 @@ public class JohtullWurm extends CardImpl { public JohtullWurm copy() { return new JohtullWurm(this); } -} \ No newline at end of file +}