mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 03:51:58 -08:00
Overflow check
This commit is contained in:
parent
9e45d962e9
commit
a5fc384644
1 changed files with 1 additions and 1 deletions
|
|
@ -126,7 +126,7 @@ class InquisitorsFlailEffect 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…
Add table
Add a link
Reference in a new issue