mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
Overflow check
This commit is contained in:
parent
977f3d4e0c
commit
77cbeb3913
1 changed files with 2 additions and 2 deletions
|
@ -104,7 +104,7 @@ class FireServantEffect 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(), event.getAmount()));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue