mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 03:51:58 -08:00
Overflow check
This commit is contained in:
parent
bf8cd69f80
commit
031eda86ab
1 changed files with 1 additions and 1 deletions
|
|
@ -121,7 +121,7 @@ class ImpulsiveManeuversEffect extends PreventionEffectImpl {
|
|||
DamageEvent damageEvent = (DamageEvent) event;
|
||||
if (damageEvent.isCombatDamage()) {
|
||||
if (wonFlip) {
|
||||
event.setAmount(event.getAmount() * 2);
|
||||
event.setAmount(game.addWithOverflowCheck(event.getAmount(), event.getAmount()));
|
||||
this.discard();
|
||||
} else {
|
||||
preventDamageAction(event, source, game);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue