CardUtil overflow

This commit is contained in:
Zzooouhh 2017-12-23 23:30:19 +01:00 committed by GitHub
parent 88e421918e
commit c9fb762d28
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -41,6 +41,7 @@ import mage.constants.Outcome;
import mage.constants.Zone;
import mage.game.Game;
import mage.game.events.GameEvent;
import mage.util.CardUtil;
/**
*
@ -106,7 +107,7 @@ class AngrathsMaraudersEffect 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;
}
}