diff --git a/Mage.Sets/src/mage/cards/t/TerisiaresDevastation.java b/Mage.Sets/src/mage/cards/t/TerisiaresDevastation.java new file mode 100644 index 0000000000..313d4c944f --- /dev/null +++ b/Mage.Sets/src/mage/cards/t/TerisiaresDevastation.java @@ -0,0 +1,44 @@ +package mage.cards.t; + +import mage.abilities.dynamicvalue.DynamicValue; +import mage.abilities.dynamicvalue.common.ManacostVariableValue; +import mage.abilities.dynamicvalue.common.PermanentsOnBattlefieldCount; +import mage.abilities.effects.common.CreateTokenEffect; +import mage.abilities.effects.common.LoseLifeSourceControllerEffect; +import mage.abilities.effects.common.continuous.BoostAllEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.filter.common.FilterControlledArtifactPermanent; +import mage.game.permanent.token.PowerstoneToken; + +import java.util.UUID; + +/** + * @author PurpleCrowbar + */ +public final class TerisiaresDevastation extends CardImpl { + + private static final DynamicValue xValue = new PermanentsOnBattlefieldCount(new FilterControlledArtifactPermanent(), -1); + + public TerisiaresDevastation(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{X}{2}{B}{B}"); + + // You lose X life and create X tapped Powerstone tokens. Then all creatures get -1/-1 until end of turn for each artifact you control. + this.getSpellAbility().addEffect(new LoseLifeSourceControllerEffect(ManacostVariableValue.REGULAR)); + this.getSpellAbility().addEffect(new CreateTokenEffect(new PowerstoneToken(), ManacostVariableValue.REGULAR, true, false).concatBy("and")); + this.getSpellAbility().addEffect(new BoostAllEffect( + xValue, xValue, Duration.EndOfTurn) + .concatBy("Then")); + } + + private TerisiaresDevastation(final TerisiaresDevastation card) { + super(card); + } + + @Override + public TerisiaresDevastation copy() { + return new TerisiaresDevastation(this); + } +} diff --git a/Mage.Sets/src/mage/sets/TheBrothersWarCommander.java b/Mage.Sets/src/mage/sets/TheBrothersWarCommander.java index 99ebe04e55..c0fd07b7b9 100644 --- a/Mage.Sets/src/mage/sets/TheBrothersWarCommander.java +++ b/Mage.Sets/src/mage/sets/TheBrothersWarCommander.java @@ -152,6 +152,7 @@ public final class TheBrothersWarCommander extends ExpansionSet { cards.add(new SetCardInfo("Temple of Epiphany", 207, Rarity.RARE, mage.cards.t.TempleOfEpiphany.class)); cards.add(new SetCardInfo("Temple of Malice", 208, Rarity.RARE, mage.cards.t.TempleOfMalice.class)); cards.add(new SetCardInfo("Temple of Silence", 209, Rarity.RARE, mage.cards.t.TempleOfSilence.class)); + cards.add(new SetCardInfo("Terisiare's Devastation", 9, Rarity.RARE, mage.cards.t.TerisiaresDevastation.class)); cards.add(new SetCardInfo("Terramorphic Expanse", 210, Rarity.COMMON, mage.cards.t.TerramorphicExpanse.class)); cards.add(new SetCardInfo("Teshar, Ancestor's Apostle", 77, Rarity.RARE, mage.cards.t.TesharAncestorsApostle.class)); cards.add(new SetCardInfo("Thirst for Knowledge", 96, Rarity.UNCOMMON, mage.cards.t.ThirstForKnowledge.class));