mirror of
https://github.com/correl/mage.git
synced 2025-01-13 19:11:33 +00:00
CardUtil overflow
This commit is contained in:
parent
88e89b1f78
commit
628ae05f54
1 changed files with 2 additions and 1 deletions
|
@ -39,6 +39,7 @@ import mage.cards.CardSetInfo;
|
|||
import mage.constants.*;
|
||||
import mage.game.Game;
|
||||
import mage.game.events.GameEvent;
|
||||
import mage.util.CardUtil;
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -105,7 +106,7 @@ class PyromancersSwathReplacementEffect 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…
Reference in a new issue