mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
CardUtil overflow
This commit is contained in:
parent
17e5bbbd54
commit
67d495e1ce
1 changed files with 2 additions and 1 deletions
|
@ -46,6 +46,7 @@ import mage.game.permanent.Permanent;
|
|||
import mage.filter.StaticFilters;
|
||||
import mage.filter.predicate.permanent.ControllerPredicate;
|
||||
import mage.players.Player;
|
||||
import mage.util.CardUtil;
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -121,7 +122,7 @@ class ImpulsiveManeuversEffect extends PreventionEffectImpl {
|
|||
DamageEvent damageEvent = (DamageEvent) event;
|
||||
if (damageEvent.isCombatDamage()) {
|
||||
if (wonFlip) {
|
||||
event.setAmount(game.addWithOverflowCheck(event.getAmount(), event.getAmount()));
|
||||
event.setAmount(CardUtil.addWithOverflowCheck(event.getAmount(), event.getAmount()));
|
||||
this.discard();
|
||||
} else {
|
||||
preventDamageAction(event, source, game);
|
||||
|
|
Loading…
Reference in a new issue