From 85b090091eccaa0319ad37d4e026ddc7474a49f1 Mon Sep 17 00:00:00 2001 From: theelk801 Date: Fri, 30 May 2025 11:42:57 -0400 Subject: [PATCH] [FIN] Implement Rydia's Return --- Mage.Sets/src/mage/cards/r/RydiasReturn.java | 40 ++++++++++++++++++++ Mage.Sets/src/mage/sets/FinalFantasy.java | 1 + Utils/mtg-cards-data.txt | 1 + 3 files changed, 42 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/r/RydiasReturn.java diff --git a/Mage.Sets/src/mage/cards/r/RydiasReturn.java b/Mage.Sets/src/mage/cards/r/RydiasReturn.java new file mode 100644 index 00000000000..acc39e0bd2e --- /dev/null +++ b/Mage.Sets/src/mage/cards/r/RydiasReturn.java @@ -0,0 +1,40 @@ +package mage.cards.r; + +import mage.abilities.Mode; +import mage.abilities.effects.common.ReturnFromGraveyardToHandTargetEffect; +import mage.abilities.effects.common.continuous.BoostControlledEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.filter.StaticFilters; +import mage.target.common.TargetCardInYourGraveyard; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class RydiasReturn extends CardImpl { + + public RydiasReturn(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{3}{G}{G}"); + + // Choose one -- + // * Creatures you control get +3/+3 until end of turn. + this.getSpellAbility().addEffect(new BoostControlledEffect(3, 3, Duration.EndOfTurn)); + + // * Return up to two target permanent cards from your graveyard to your hand. + this.getSpellAbility().addMode(new Mode(new ReturnFromGraveyardToHandTargetEffect()) + .addTarget(new TargetCardInYourGraveyard(StaticFilters.FILTER_CARD_PERMANENTS))); + } + + private RydiasReturn(final RydiasReturn card) { + super(card); + } + + @Override + public RydiasReturn copy() { + return new RydiasReturn(this); + } +} diff --git a/Mage.Sets/src/mage/sets/FinalFantasy.java b/Mage.Sets/src/mage/sets/FinalFantasy.java index af4e8ba81f3..69c5851b584 100644 --- a/Mage.Sets/src/mage/sets/FinalFantasy.java +++ b/Mage.Sets/src/mage/sets/FinalFantasy.java @@ -424,6 +424,7 @@ public final class FinalFantasy extends ExpansionSet { cards.add(new SetCardInfo("Rosa, Resolute White Mage", 555, Rarity.RARE, mage.cards.r.RosaResoluteWhiteMage.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Rufus Shinra", 238, Rarity.UNCOMMON, mage.cards.r.RufusShinra.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Rufus Shinra", 503, Rarity.UNCOMMON, mage.cards.r.RufusShinra.class, NON_FULL_USE_VARIOUS)); + cards.add(new SetCardInfo("Rydia's Return", 198, Rarity.UNCOMMON, mage.cards.r.RydiasReturn.class)); cards.add(new SetCardInfo("Sabotender", 153, Rarity.COMMON, mage.cards.s.Sabotender.class)); cards.add(new SetCardInfo("Sage's Nouliths", 582, Rarity.COMMON, mage.cards.s.SagesNouliths.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Sage's Nouliths", 70, Rarity.COMMON, mage.cards.s.SagesNouliths.class, NON_FULL_USE_VARIOUS)); diff --git a/Utils/mtg-cards-data.txt b/Utils/mtg-cards-data.txt index 56207e45070..36f9009fe7b 100644 --- a/Utils/mtg-cards-data.txt +++ b/Utils/mtg-cards-data.txt @@ -57836,6 +57836,7 @@ Quina, Qu Gourmet|Final Fantasy|194|U|{2}{G}|Legendary Creature - Qu|2|3|If one Reach the Horizon|Final Fantasy|195|U|{3}{G}|Sorcery|||Search your library for up to two basic land cards and/or Town cards with different names, put them onto the battlefield tapped, then shuffle.| A Realm Reborn|Final Fantasy|196|R|{4}{G}{G}|Enchantment|||Other permanents you control have "{T}: Add one mana of any color."| Ride the Shoopuf|Final Fantasy|197|U|{1}{G}|Enchantment|||Landfall -- Whenever a land you control enters, put a +1/+1 counter on target creature you control.${5}{G}{G}: This enchantment becomes a 7/7 Beast creature in addition to its other types.| +Rydia's Return|Final Fantasy|198|U|{3}{G}{G}|Sorcery|||Choose one --$* Creatures you control get +3/+3 until end of turn.$* Return up to two target permanent cards from your graveyard to your hand.| Sazh Katzroy|Final Fantasy|199|R|{3}{G}|Legendary Creature - Human Pilot|3|3|When Sazh Katzroy enters, you may search your library for a Bird or basic land card, reveal it, put it into your hand, then shuffle.$Whenever Sazh Katzroy attacks, put a +1/+1 counter on target creature, then double the number of +1/+1 counters on that creature.| Sazh's Chocobo|Final Fantasy|200|U|{G}|Creature - Bird|0|1|Landfall -- Whenever a land you control enters, put a +1/+1 counter on this creature.| Sidequest: Raise a Chocobo|Final Fantasy|201|U|{1}{G}|Enchantment|||When this enchantment enters, create a 2/2 green Bird creature token with "Whenever a land you control enters, this token gets +1/+0 until end of turn."$At the beginning of your first main phase, if you control four or more Birds, transform this enchantment.|