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