mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 05:09:16 -08:00
fixed wrong calculation for wurm
This commit is contained in:
parent
58ea586ca5
commit
e87727dd76
1 changed files with 5 additions and 4 deletions
|
|
@ -54,8 +54,9 @@ public class JohtullWurm extends CardImpl {
|
||||||
this.toughness = new MageInt(6);
|
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.
|
// 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);
|
DynamicValue blockedCreatureCount = new BlockedCreatureCount();
|
||||||
int value = Math.negateExact(Integer.parseInt(toughnessValue.toString()) - 1);
|
int value = Math.negateExact(Integer.parseInt(blockedCreatureCount.toString()) - 1);
|
||||||
|
int powerValue = value * 2;
|
||||||
|
|
||||||
Effect effect = new BoostSourceEffect(powerValue, value, Duration.EndOfTurn);
|
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");
|
effect.setText("it gets -2/-1 until end of turn for each creature blocking it beyond the first");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue