From 1481b2ce8dec754b29e46d36f8928804d50f8352 Mon Sep 17 00:00:00 2001 From: theelk801 Date: Fri, 23 May 2025 16:50:04 -0400 Subject: [PATCH] [FIN] Implement Ether --- Mage.Sets/src/mage/cards/e/Ether.java | 38 +++++++++++++++++++++++ Mage.Sets/src/mage/sets/FinalFantasy.java | 1 + 2 files changed, 39 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/e/Ether.java diff --git a/Mage.Sets/src/mage/cards/e/Ether.java b/Mage.Sets/src/mage/cards/e/Ether.java new file mode 100644 index 00000000000..2b22a273dd5 --- /dev/null +++ b/Mage.Sets/src/mage/cards/e/Ether.java @@ -0,0 +1,38 @@ +package mage.cards.e; + +import mage.abilities.common.delayed.CopyNextSpellDelayedTriggeredAbility; +import mage.abilities.costs.common.ExileSourceCost; +import mage.abilities.effects.common.CreateDelayedTriggeredAbilityEffect; +import mage.abilities.mana.BasicManaAbility; +import mage.abilities.mana.BlueManaAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class Ether extends CardImpl { + + public Ether(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{3}{U}"); + + // {T}, Exile this artifact: Add {U}. When you next cast an instant or sorcery spell this turn, copy that spell. You may choose new targets for the copy. + BasicManaAbility ability = new BlueManaAbility(); + ability.addCost(new ExileSourceCost()); + ability.addEffect(new CreateDelayedTriggeredAbilityEffect(new CopyNextSpellDelayedTriggeredAbility())); + ability.setUndoPossible(false); // exiles itself and creates a delayed trigger so undo should be disabled + this.addAbility(ability); + } + + private Ether(final Ether card) { + super(card); + } + + @Override + public Ether copy() { + return new Ether(this); + } +} diff --git a/Mage.Sets/src/mage/sets/FinalFantasy.java b/Mage.Sets/src/mage/sets/FinalFantasy.java index cf5a38b808e..a9d484b5f4b 100644 --- a/Mage.Sets/src/mage/sets/FinalFantasy.java +++ b/Mage.Sets/src/mage/sets/FinalFantasy.java @@ -135,6 +135,7 @@ public final class FinalFantasy extends ExpansionSet { cards.add(new SetCardInfo("Esper Terra", 245, Rarity.MYTHIC, mage.cards.e.EsperTerra.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Esper Terra", 323, Rarity.MYTHIC, mage.cards.e.EsperTerra.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Esper Terra", 511, Rarity.MYTHIC, mage.cards.e.EsperTerra.class, NON_FULL_USE_VARIOUS)); + cards.add(new SetCardInfo("Ether", 53, Rarity.UNCOMMON, mage.cards.e.Ether.class)); cards.add(new SetCardInfo("Evil Reawakened", 98, Rarity.UNCOMMON, mage.cards.e.EvilReawakened.class)); cards.add(new SetCardInfo("Fang, Fearless l'Cie", 381, Rarity.UNCOMMON, mage.cards.f.FangFearlessLCie.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Fang, Fearless l'Cie", 446, Rarity.UNCOMMON, mage.cards.f.FangFearlessLCie.class, NON_FULL_USE_VARIOUS));