From ccea6d06d7c5ce2a1c4e2871a8baf1fa88048269 Mon Sep 17 00:00:00 2001 From: BetaSteward Date: Fri, 12 Aug 2011 21:32:34 -0400 Subject: [PATCH] fixed DamageXTargetEffect --- Mage/src/mage/abilities/effects/common/DamageXTargetEffect.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mage/src/mage/abilities/effects/common/DamageXTargetEffect.java b/Mage/src/mage/abilities/effects/common/DamageXTargetEffect.java index e55c5080b1..9b56fd3d4c 100644 --- a/Mage/src/mage/abilities/effects/common/DamageXTargetEffect.java +++ b/Mage/src/mage/abilities/effects/common/DamageXTargetEffect.java @@ -57,7 +57,7 @@ public class DamageXTargetEffect extends OneShotEffect { @Override public boolean apply(Game game, Ability source) { - int amount = source.getCosts().getVariableCosts().get(0).getAmount(); + int amount = source.getManaCostsToPay().getVariableCosts().get(0).getAmount(); Permanent permanent = game.getPermanent(source.getFirstTarget()); if (permanent != null) { permanent.damage(amount, source.getId(), game, true, false);