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
a098b12d3c
commit
b10bb83727
1 changed files with 2 additions and 1 deletions
|
@ -19,6 +19,7 @@ import mage.game.permanent.Permanent;
|
|||
import mage.players.Player;
|
||||
import mage.target.TargetPlayer;
|
||||
import mage.target.common.TargetCreaturePermanent;
|
||||
import mage.util.CardUtil;
|
||||
|
||||
/**
|
||||
* @author Stravant
|
||||
|
@ -88,7 +89,7 @@ class InsultDoubleDamageEffect extends ReplacementEffectImpl {
|
|||
|
||||
@Override
|
||||
public boolean replaceEvent(GameEvent event, Ability source, Game game) {
|
||||
event.setAmount(game.addWithOverflowCheck(event.getAmount(), event.getAmount()));
|
||||
event.setAmount(CardUtil.addWithOverflowCheck(event.getAmount(), event.getAmount()));
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue