mirror of
https://github.com/correl/mage.git
synced 2024-11-16 03:00:12 +00:00
* Toxic Deluge - Fixed that the x costs were not calculated corectly.
This commit is contained in:
parent
5c54bd6d7f
commit
48b644d9e2
2 changed files with 3 additions and 1 deletions
|
@ -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) {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue