From 6314d0b3584eada9a391bafc8ea513e812c111cf Mon Sep 17 00:00:00 2001 From: Zzooouhh Date: Sat, 23 Dec 2017 23:30:52 +0100 Subject: [PATCH] CardUtil overflow --- Mage.Sets/src/mage/cards/a/AnthemOfRakdos.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Mage.Sets/src/mage/cards/a/AnthemOfRakdos.java b/Mage.Sets/src/mage/cards/a/AnthemOfRakdos.java index 46e3457cb3..c3ec17a417 100644 --- a/Mage.Sets/src/mage/cards/a/AnthemOfRakdos.java +++ b/Mage.Sets/src/mage/cards/a/AnthemOfRakdos.java @@ -44,6 +44,7 @@ import mage.constants.Outcome; import mage.constants.Zone; import mage.game.Game; import mage.game.events.GameEvent; +import mage.util.CardUtil; /** * @author JotaPeRL @@ -110,7 +111,7 @@ class AnthemOfRakdosHellbentEffect extends ReplacementEffectImpl { @Override public boolean replaceEvent(GameEvent event, Ability source, Game game) { - event.setAmount(game.addWithOverflowCheck(event.getAmount(), event.getAmount())); + event.setAmount(CardUtil.addWithOverflowCheck(event.getAmount(), event.getAmount())); return false; } }