From d9c6e53877c4733b5ba392c190fe0b20d564d827 Mon Sep 17 00:00:00 2001 From: Zzooouhh Date: Fri, 22 Dec 2017 22:28:52 +0100 Subject: [PATCH] Overflow check --- Mage.Sets/src/mage/cards/p/PyromancersSwath.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mage.Sets/src/mage/cards/p/PyromancersSwath.java b/Mage.Sets/src/mage/cards/p/PyromancersSwath.java index 84c83333cb..4e01280531 100644 --- a/Mage.Sets/src/mage/cards/p/PyromancersSwath.java +++ b/Mage.Sets/src/mage/cards/p/PyromancersSwath.java @@ -105,7 +105,7 @@ class PyromancersSwathReplacementEffect 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; }