mirror of
https://github.com/correl/mage.git
synced 2025-01-12 11:08:01 +00:00
Overflow check
This commit is contained in:
parent
d9c6e53877
commit
3a74a44a27
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@ class EmbermawHellionEffect extends ReplacementEffectImpl {
|
|||
|
||||
@Override
|
||||
public boolean replaceEvent(GameEvent event, Ability source, Game game) {
|
||||
event.setAmount(event.getAmount() + 1);
|
||||
event.setAmount(game.addWithOverflowCheck(event.getAmount(), 1));
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue