From 66fad7b482af75ed1506c443651bdcb4845857fe Mon Sep 17 00:00:00 2001 From: magenoxx Date: Fri, 25 Feb 2011 20:54:01 +0300 Subject: [PATCH] BoostPowerXSourceEffect fix. --- .../common/continious/BoostPowerXSourceEffect.java | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/Mage/src/mage/abilities/effects/common/continious/BoostPowerXSourceEffect.java b/Mage/src/mage/abilities/effects/common/continious/BoostPowerXSourceEffect.java index 377649ad21..dd6e98d3b5 100644 --- a/Mage/src/mage/abilities/effects/common/continious/BoostPowerXSourceEffect.java +++ b/Mage/src/mage/abilities/effects/common/continious/BoostPowerXSourceEffect.java @@ -63,14 +63,9 @@ public class BoostPowerXSourceEffect extends ContinuousEffectImpl varCost = source.getCosts().getVariableCosts(); - if (varCost.size() > 0) { - amount = varCost.get(0).getAmount(); - } else { - amount = 0; - return false; - } + int amount = source.getManaCostsToPay().getVariableCosts().get(0).getAmount(); + if (amount == 0) { + return false; } Permanent target = (Permanent) game.getPermanent(source.getSourceId()); if (target != null) {