Overflow check

This commit is contained in:
Zzooouhh 2017-12-22 22:16:35 +01:00 committed by GitHub
parent 977f3d4e0c
commit 77cbeb3913
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -104,8 +104,8 @@ 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;
} }
} }