Overflow check

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

View file

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