From 48b644d9e27205756f92b9c7a0950e679b1750ec Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Fri, 11 Apr 2014 21:10:23 +0200 Subject: [PATCH] * Toxic Deluge - Fixed that the x costs were not calculated corectly. --- Mage.Sets/src/mage/sets/commander2013/ToxicDeluge.java | 3 ++- Mage/src/mage/abilities/costs/VariableCostImpl.java | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Mage.Sets/src/mage/sets/commander2013/ToxicDeluge.java b/Mage.Sets/src/mage/sets/commander2013/ToxicDeluge.java index 5097eaf516..1c745f83a7 100644 --- a/Mage.Sets/src/mage/sets/commander2013/ToxicDeluge.java +++ b/Mage.Sets/src/mage/sets/commander2013/ToxicDeluge.java @@ -37,6 +37,7 @@ import mage.cards.CardImpl; import mage.constants.CardType; import mage.constants.Duration; import mage.constants.Rarity; +import mage.filter.common.FilterCreaturePermanent; /** * @@ -54,7 +55,7 @@ public class ToxicDeluge extends CardImpl { this.getSpellAbility().addCost(new PayVariableLifeCost(true)); // All creatures get -X/-X until end of turn. DynamicValue xValue = new SignInversionDynamicValue(new GetXValue()); - this.getSpellAbility().addEffect(new BoostAllEffect(xValue, xValue, Duration.EndOfTurn)); + this.getSpellAbility().addEffect(new BoostAllEffect(xValue, xValue, Duration.EndOfTurn, new FilterCreaturePermanent(), false,"", true)); } public ToxicDeluge(final ToxicDeluge card) { diff --git a/Mage/src/mage/abilities/costs/VariableCostImpl.java b/Mage/src/mage/abilities/costs/VariableCostImpl.java index fc980bbc17..7c45e22a5f 100644 --- a/Mage/src/mage/abilities/costs/VariableCostImpl.java +++ b/Mage/src/mage/abilities/costs/VariableCostImpl.java @@ -78,6 +78,7 @@ public abstract class VariableCostImpl> implements this.targets = cost.targets.copy(); this.xText = cost.xText; this.actionText = cost.actionText; + this.amountPaid = cost.amountPaid; } @Override