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
a35ee6837f
commit
c0423d9656
1 changed files with 2 additions and 1 deletions
|
@ -43,6 +43,7 @@ import mage.constants.Zone;
|
|||
import mage.game.Game;
|
||||
import mage.game.events.GameEvent;
|
||||
import mage.game.stack.StackObject;
|
||||
import mage.util.CardUtil;
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -111,7 +112,7 @@ class FireServantEffect 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