mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 20:11:59 -08:00
Overflow check
This commit is contained in:
parent
1ab224f046
commit
9e45d962e9
1 changed files with 1 additions and 1 deletions
|
|
@ -137,7 +137,7 @@ class QuestForPureFlameEffect extends ReplacementEffectImpl {
|
|||
|
||||
@Override
|
||||
public boolean replaceEvent(GameEvent event, Ability source, Game game) {
|
||||
event.setAmount(event.getAmount() * 2);
|
||||
event.setAmount(game.addWithOverflowCheck(event.getAmount(), event.getAmount()));
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue