mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 21:29:17 -08:00
CardUtil overflow
This commit is contained in:
parent
34282dbd72
commit
88e89b1f78
1 changed files with 2 additions and 1 deletions
|
|
@ -42,6 +42,7 @@ import mage.game.Game;
|
|||
import mage.game.events.GameEvent;
|
||||
import mage.game.permanent.Permanent;
|
||||
import mage.game.stack.Spell;
|
||||
import mage.util.CardUtil;
|
||||
|
||||
/**
|
||||
*
|
||||
|
|
@ -103,7 +104,7 @@ class PyromancersGauntletReplacementEffect extends ReplacementEffectImpl {
|
|||
|
||||
@Override
|
||||
public boolean replaceEvent(GameEvent event, Ability source, Game game) {
|
||||
event.setAmount(game.addWithOverflowCheck(event.getAmount(), 2));
|
||||
event.setAmount(CardUtil.addWithOverflowCheck(event.getAmount(), 2));
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue