fixed wrong calculation for wurm

This commit is contained in:
markedagain 2016-02-24 12:25:39 -05:00
parent 58ea586ca5
commit e87727dd76

View file

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