From 2f9e8cb943232a073e38dd5533ec7513db802e67 Mon Sep 17 00:00:00 2001 From: theelk801 Date: Mon, 30 Oct 2023 21:25:09 -0400 Subject: [PATCH] [LCI] Implement Self-Reflection --- .../src/mage/cards/s/SelfReflection.java | 37 +++++++++++++++++++ .../src/mage/sets/TheLostCavernsOfIxalan.java | 1 + Utils/mtg-cards-data.txt | 2 +- 3 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 Mage.Sets/src/mage/cards/s/SelfReflection.java diff --git a/Mage.Sets/src/mage/cards/s/SelfReflection.java b/Mage.Sets/src/mage/cards/s/SelfReflection.java new file mode 100644 index 00000000000..ebe2cdb2628 --- /dev/null +++ b/Mage.Sets/src/mage/cards/s/SelfReflection.java @@ -0,0 +1,37 @@ +package mage.cards.s; + +import mage.abilities.costs.mana.ManaCostsImpl; +import mage.abilities.effects.common.CreateTokenCopyTargetEffect; +import mage.abilities.keyword.FlashbackAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.target.common.TargetControlledCreaturePermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class SelfReflection extends CardImpl { + + public SelfReflection(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{4}{U}{U}"); + + // Create a token that's a copy of target creature you control. + this.getSpellAbility().addEffect(new CreateTokenCopyTargetEffect()); + this.getSpellAbility().addTarget(new TargetControlledCreaturePermanent()); + + // Flashback {3}{U} + this.addAbility(new FlashbackAbility(this, new ManaCostsImpl<>("{3}{U}"))); + } + + private SelfReflection(final SelfReflection card) { + super(card); + } + + @Override + public SelfReflection copy() { + return new SelfReflection(this); + } +} diff --git a/Mage.Sets/src/mage/sets/TheLostCavernsOfIxalan.java b/Mage.Sets/src/mage/sets/TheLostCavernsOfIxalan.java index 5e6316be4c5..2ce865ca454 100644 --- a/Mage.Sets/src/mage/sets/TheLostCavernsOfIxalan.java +++ b/Mage.Sets/src/mage/sets/TheLostCavernsOfIxalan.java @@ -117,6 +117,7 @@ public final class TheLostCavernsOfIxalan extends ExpansionSet { cards.add(new SetCardInfo("Ruin-Lurker Bat", 33, Rarity.UNCOMMON, mage.cards.r.RuinLurkerBat.class)); cards.add(new SetCardInfo("Saheeli, the Sun's Brilliance", 239, Rarity.MYTHIC, mage.cards.s.SaheeliTheSunsBrilliance.class)); cards.add(new SetCardInfo("Sanguine Evangelist", 34, Rarity.RARE, mage.cards.s.SanguineEvangelist.class)); + cards.add(new SetCardInfo("Self-Reflection", 74, Rarity.UNCOMMON, mage.cards.s.SelfReflection.class)); cards.add(new SetCardInfo("Sinuous Benthisaur", 76, Rarity.UNCOMMON, mage.cards.s.SinuousBenthisaur.class)); cards.add(new SetCardInfo("Skullcap Snail", 119, Rarity.COMMON, mage.cards.s.SkullcapSnail.class)); cards.add(new SetCardInfo("Song of Stupefaction", 77, Rarity.COMMON, mage.cards.s.SongOfStupefaction.class)); diff --git a/Utils/mtg-cards-data.txt b/Utils/mtg-cards-data.txt index 93872be4135..15b4897df03 100644 --- a/Utils/mtg-cards-data.txt +++ b/Utils/mtg-cards-data.txt @@ -12139,7 +12139,7 @@ Kitesail Larcenist|The Lost Caverns of Ixalan|61|R|{2}{U}|Creature - Human Pirat Malcolm, Alluring Scoundrel|The Lost Caverns of Ixalan|63|R|{1}{U}|Legendary Creature - Siren Pirate|2|1|Flash$Flying$Whenever Malcolm, Alluring Scoundrel deals combat damage to a player, put a chorus counter on it. Draw a card, then discard a card. If there are four or more chorus counters on Malcolm, you may cast the discarded card without paying its mana cost.| Ojer Pakpatiq, Deepest Epoch|The Lost Caverns of Ixalan|67|M|{2}{U}{U}|Legendary Creature - God|4|3|Flying$Whenever you cast an instant spell from your hand, it gains rebound.$When Ojer Pakpatiq dies, return it to the battlefield tapped and transformed under its owner's control with three time counters on it.| Temple of Cyclical Time|The Lost Caverns of Ixalan|67|M||Land|||(Transforms from Ojer Pakpatiq, Deepest Epoch.)${T}: Add {U}. Remove a time counter from Temple of Cyclical Time.${2}{U}, {T}: Transform Temple of Cyclical Time. Activate only if it has no time counters on it and only as a sorcery.| -Self Reflection|The Lost Caverns of Ixalan|74|U|{4}{U}{U}|Sorcery|||Create a token that's a copy of target creature you control.$Flashback {3}{U}| +Self-Reflection|The Lost Caverns of Ixalan|74|U|{4}{U}{U}|Sorcery|||Create a token that's a copy of target creature you control.$Flashback {3}{U}| Sinuous Benthisaur|The Lost Caverns of Ixalan|76|U|{5}{U}|Creature - Dinosaur|4|4|When Sinuous Benthisaur enters the battlefield, look at the top X cards of your library, where X is the number of Caves you control plus the number of Cave cards in your graveyard. Put two of those cards into your hand and the rest on the bottom of your library in a random order.| Song of Stupefaction|The Lost Caverns of Ixalan|77|C|{1}{U}|Enchantment - Aura|||Enchant creature or Vehicle$When Song of Stupefaction enters the battlefield, you may mill two cards.$Fathomless descent -- Enchanted permanent gets -X/-0, where X is the number of permanent cards in your graveyard.| Spyglass Siren|The Lost Caverns of Ixalan|78|U|{U}|Creature - Siren Pirate|1|1|Flying$When Spyglass Siren enters the battlefield, create a Map token.|