forked from External/mage
fixed wrong calculation for wurm
This commit is contained in:
parent
58ea586ca5
commit
e87727dd76
1 changed files with 5 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue