From 909f9d601d8873b64d505cd6f3ac7231edd3fbf0 Mon Sep 17 00:00:00 2001 From: Muz Date: Sat, 10 Jan 2026 12:38:03 -0600 Subject: [PATCH] [ECL] Implement Gilt Leaf's Embrace (#14219) --- .../src/mage/cards/g/GiltLeafsEmbrace.java | 66 +++++++++++++++++++ Mage.Sets/src/mage/sets/LorwynEclipsed.java | 1 + 2 files changed, 67 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/g/GiltLeafsEmbrace.java diff --git a/Mage.Sets/src/mage/cards/g/GiltLeafsEmbrace.java b/Mage.Sets/src/mage/cards/g/GiltLeafsEmbrace.java new file mode 100644 index 00000000000..4ceb4d4fb64 --- /dev/null +++ b/Mage.Sets/src/mage/cards/g/GiltLeafsEmbrace.java @@ -0,0 +1,66 @@ +package mage.cards.g; + +import java.util.UUID; +import mage.constants.SubType; +import mage.abilities.keyword.FlashAbility; +import mage.abilities.keyword.IndestructibleAbility; +import mage.abilities.keyword.TrampleAbility; +import mage.target.common.TargetCreaturePermanent; +import mage.abilities.common.EntersBattlefieldTriggeredAbility; +import mage.abilities.common.SimpleStaticAbility; +import mage.abilities.effects.common.AttachEffect; +import mage.abilities.effects.common.continuous.BoostEnchantedEffect; +import mage.abilities.effects.common.continuous.GainAbilityAttachedEffect; +import mage.constants.Outcome; +import mage.target.TargetPermanent; +import mage.abilities.keyword.EnchantAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.AttachmentType; +import mage.constants.CardType; +import mage.constants.Duration; + +/** + * + * @author muz + */ +public final class GiltLeafsEmbrace extends CardImpl { + + public GiltLeafsEmbrace(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{2}{G}"); + + this.subtype.add(SubType.AURA); + + // Flash + this.addAbility(FlashAbility.getInstance()); + + // Enchant creature + TargetPermanent auraTarget = new TargetCreaturePermanent(); + this.getSpellAbility().addTarget(auraTarget); + this.getSpellAbility().addEffect(new AttachEffect(Outcome.BoostCreature)); + this.addAbility(new EnchantAbility(auraTarget)); + + // When this Aura enters, enchanted creature gains trample and indestructible until end of turn. + EntersBattlefieldTriggeredAbility ability = new EntersBattlefieldTriggeredAbility( + new GainAbilityAttachedEffect(TrampleAbility.getInstance(), AttachmentType.AURA, Duration.EndOfTurn) + .setText("enchanted creature gains trample") + ); + ability.addEffect( + new GainAbilityAttachedEffect(IndestructibleAbility.getInstance(), AttachmentType.AURA, Duration.EndOfTurn) + .setText("and indestructible until end of turn") + ); + this.addAbility(ability); + + // Enchanted creature gets +2/+0. + this.addAbility(new SimpleStaticAbility(new BoostEnchantedEffect(2, 0))); + } + + private GiltLeafsEmbrace(final GiltLeafsEmbrace card) { + super(card); + } + + @Override + public GiltLeafsEmbrace copy() { + return new GiltLeafsEmbrace(this); + } +} diff --git a/Mage.Sets/src/mage/sets/LorwynEclipsed.java b/Mage.Sets/src/mage/sets/LorwynEclipsed.java index 93abd7a9f2b..69246e75df7 100644 --- a/Mage.Sets/src/mage/sets/LorwynEclipsed.java +++ b/Mage.Sets/src/mage/sets/LorwynEclipsed.java @@ -142,6 +142,7 @@ public final class LorwynEclipsed extends ExpansionSet { cards.add(new SetCardInfo("Gallant Fowlknight", 17, Rarity.COMMON, mage.cards.g.GallantFowlknight.class)); cards.add(new SetCardInfo("Gangly Stompling", 226, Rarity.COMMON, mage.cards.g.GanglyStompling.class)); cards.add(new SetCardInfo("Giantfall", 141, Rarity.UNCOMMON, mage.cards.g.Giantfall.class)); + cards.add(new SetCardInfo("Gilt-Leaf's Embrace", 177, Rarity.COMMON, mage.cards.g.GiltLeafsEmbrace.class)); cards.add(new SetCardInfo("Glamer Gifter", 49, Rarity.UNCOMMON, mage.cards.g.GlamerGifter.class)); cards.add(new SetCardInfo("Glamermite", 50, Rarity.COMMON, mage.cards.g.Glamermite.class)); cards.add(new SetCardInfo("Glister Bairn", 227, Rarity.UNCOMMON, mage.cards.g.GlisterBairn.class));