mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 21:02:08 -08:00
CardUtil overflow
This commit is contained in:
parent
43cffd1054
commit
331428b1ae
1 changed files with 2 additions and 1 deletions
|
|
@ -44,6 +44,7 @@ import mage.constants.Zone;
|
|||
import mage.game.Game;
|
||||
import mage.game.events.GameEvent;
|
||||
import mage.game.permanent.Permanent;
|
||||
import mage.util.CardUtil;
|
||||
|
||||
/**
|
||||
*
|
||||
|
|
@ -120,7 +121,7 @@ class EmbermawHellionEffect extends ReplacementEffectImpl {
|
|||
|
||||
@Override
|
||||
public boolean replaceEvent(GameEvent event, Ability source, Game game) {
|
||||
event.setAmount(game.addWithOverflowCheck(event.getAmount(), 1));
|
||||
event.setAmount(CardUtil.addWithOverflowCheck(event.getAmount(), 1));
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue