mirror of
https://github.com/correl/mage.git
synced 2024-11-15 03:00:16 +00:00
Included overflow check methods
This commit is contained in:
parent
40561e900a
commit
bf6939f45b
1 changed files with 2 additions and 1 deletions
|
@ -887,7 +887,8 @@ public abstract class PermanentImpl extends CardImpl implements Permanent {
|
|||
addCounters(CounterType.M1M1.createInstance(actualDamage), damageSourceAbility, game);
|
||||
}
|
||||
} else {
|
||||
this.damage += actualDamage;
|
||||
// this.damage += actualDamage;
|
||||
this.damage = game.addWithOverflowCheck(this.damage, actualDamage);
|
||||
}
|
||||
game.fireEvent(new DamagedCreatureEvent(objectId, sourceId, controllerId, actualDamage, combat));
|
||||
return actualDamage;
|
||||
|
|
Loading…
Reference in a new issue