mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 12:02:01 -08:00
Standardize triple-damage replacement effect math
This commit is contained in:
parent
69ec0e8946
commit
aedad88480
2 changed files with 2 additions and 8 deletions
|
|
@ -66,11 +66,7 @@ class FieryEmancipationEffect extends ReplacementEffectImpl {
|
|||
|
||||
@Override
|
||||
public boolean replaceEvent(GameEvent event, Ability source, Game game) {
|
||||
event.setAmount(CardUtil.overflowInc(
|
||||
CardUtil.overflowInc(
|
||||
event.getAmount(), event.getAmount()
|
||||
), event.getAmount()
|
||||
));
|
||||
event.setAmount(CardUtil.overflowMultiply(event.getAmount(), 3));
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -150,9 +150,7 @@ class JeskaThriceRebornEffect extends ReplacementEffectImpl {
|
|||
|
||||
@Override
|
||||
public boolean replaceEvent(GameEvent event, Ability source, Game game) {
|
||||
int amount = event.getAmount();
|
||||
event.setAmount(CardUtil.overflowInc(amount, event.getAmount()));
|
||||
event.setAmount(CardUtil.overflowInc(amount, event.getAmount()));
|
||||
event.setAmount(CardUtil.overflowMultiply(event.getAmount(), 3));
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue