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