mirror of
https://github.com/correl/mage.git
synced 2024-11-15 03:00:16 +00:00
CardUtil overflow
This commit is contained in:
parent
67d495e1ce
commit
a098b12d3c
1 changed files with 2 additions and 1 deletions
|
@ -45,6 +45,7 @@ import mage.game.events.DamageCreatureEvent;
|
|||
import mage.game.events.DamageEvent;
|
||||
import mage.game.events.GameEvent;
|
||||
import mage.game.permanent.Permanent;
|
||||
import mage.util.CardUtil;
|
||||
|
||||
/**
|
||||
* @author nantuko
|
||||
|
@ -126,7 +127,7 @@ class InquisitorsFlailEffect 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