CardUtil overflow

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

View file

@ -47,6 +47,7 @@ import mage.game.permanent.Permanent;
import mage.game.stack.StackObject; import mage.game.stack.StackObject;
import mage.players.Player; import mage.players.Player;
import mage.target.TargetPlayer; import mage.target.TargetPlayer;
import mage.util.CardUtil;
/** /**
* *
@ -194,7 +195,7 @@ class BitterFeudEffect 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;
} }
} }