diff --git a/Mage.Sets/src/mage/cards/t/TragicTrajectory.java b/Mage.Sets/src/mage/cards/t/TragicTrajectory.java new file mode 100644 index 00000000000..ba467847b25 --- /dev/null +++ b/Mage.Sets/src/mage/cards/t/TragicTrajectory.java @@ -0,0 +1,46 @@ +package mage.cards.t; + +import mage.abilities.condition.common.VoidCondition; +import mage.abilities.decorator.ConditionalOneShotEffect; +import mage.abilities.effects.common.AddContinuousEffectToGame; +import mage.abilities.effects.common.continuous.BoostTargetEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.AbilityWord; +import mage.constants.CardType; +import mage.target.common.TargetCreaturePermanent; +import mage.watchers.common.VoidWatcher; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class TragicTrajectory extends CardImpl { + + public TragicTrajectory(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{B}"); + + // Target creature gets -2/-2 until end of turn. + // Void -- That creature gets -10/-10 until end of turn instead if a nonland permanent left the battlefield this turn or a spell was warped this turn. + this.getSpellAbility().addEffect(new ConditionalOneShotEffect( + new AddContinuousEffectToGame(new BoostTargetEffect(-10, -10)), + new AddContinuousEffectToGame(new BoostTargetEffect(-2, -2)), + VoidCondition.instance, "Target creature gets -2/-2 until end of turn.
" + + AbilityWord.VOID.formatWord() + "That creature gets -10/-10 until end of turn instead " + + "if a nonland permanent left the battlefield this turn or a spell was warped this turn" + )); + this.getSpellAbility().addTarget(new TargetCreaturePermanent()); + this.getSpellAbility().addHint(VoidCondition.getHint()); + this.getSpellAbility().addWatcher(new VoidWatcher()); + } + + private TragicTrajectory(final TragicTrajectory card) { + super(card); + } + + @Override + public TragicTrajectory copy() { + return new TragicTrajectory(this); + } +} diff --git a/Mage.Sets/src/mage/sets/EdgeOfEternities.java b/Mage.Sets/src/mage/sets/EdgeOfEternities.java index 6f651d33f6c..c7a7e597091 100644 --- a/Mage.Sets/src/mage/sets/EdgeOfEternities.java +++ b/Mage.Sets/src/mage/sets/EdgeOfEternities.java @@ -103,6 +103,7 @@ public final class EdgeOfEternities extends ExpansionSet { cards.add(new SetCardInfo("The Seriema", 35, Rarity.RARE, mage.cards.t.TheSeriema.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Thrumming Hivepool", 247, Rarity.RARE, mage.cards.t.ThrummingHivepool.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Thrumming Hivepool", 356, Rarity.RARE, mage.cards.t.ThrummingHivepool.class, NON_FULL_USE_VARIOUS)); + cards.add(new SetCardInfo("Tragic Trajectory", 122, Rarity.UNCOMMON, mage.cards.t.TragicTrajectory.class)); cards.add(new SetCardInfo("Uthros, Titanic Godcore", 260, Rarity.MYTHIC, mage.cards.u.UthrosTitanicGodcore.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Uthros, Titanic Godcore", 285, Rarity.MYTHIC, mage.cards.u.UthrosTitanicGodcore.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Uthros, Titanic Godcore", 380, Rarity.MYTHIC, mage.cards.u.UthrosTitanicGodcore.class, NON_FULL_USE_VARIOUS));