Overflow check

This commit is contained in:
Zzooouhh 2017-12-22 22:30:57 +01:00 committed by GitHub
parent d9c6e53877
commit 3a74a44a27
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}