* Toxic Deluge - Fixed that the x costs were not calculated corectly.

This commit is contained in:
LevelX2 2014-04-11 21:10:23 +02:00
parent 5c54bd6d7f
commit 48b644d9e2
2 changed files with 3 additions and 1 deletions

View file

@ -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<ToxicDeluge> {
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) {

View file

@ -78,6 +78,7 @@ public abstract class VariableCostImpl<T extends VariableCostImpl<T>> implements
this.targets = cost.targets.copy();
this.xText = cost.xText;
this.actionText = cost.actionText;
this.amountPaid = cost.amountPaid;
}
@Override