CardUtil overflow

This commit is contained in:
Zzooouhh 2017-12-23 23:47:24 +01:00 committed by GitHub
parent a098b12d3c
commit b10bb83727
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}
}