CardUtil overflow

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

View file

@ -27,6 +27,7 @@
*/ */
package mage.cards.c; package mage.cards.c;
import java.util.UUID;
import mage.abilities.Ability; import mage.abilities.Ability;
import mage.abilities.common.SimpleStaticAbility; import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.effects.ReplacementEffectImpl; import mage.abilities.effects.ReplacementEffectImpl;
@ -39,8 +40,7 @@ import mage.game.Game;
import mage.game.events.GameEvent; import mage.game.events.GameEvent;
import mage.game.permanent.Permanent; import mage.game.permanent.Permanent;
import mage.target.TargetPlayer; import mage.target.TargetPlayer;
import mage.util.CardUtil;
import java.util.UUID;
/** /**
* *
@ -112,7 +112,7 @@ class CurseOfBloodlettingEffect extends ReplacementEffectImpl {
@Override @Override
public boolean replaceEvent(GameEvent event, Ability source, Game game) { 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; return false;
} }