From 605cf28ccb09f8cdc652b9fd0f4ba9bf7072e44b Mon Sep 17 00:00:00 2001 From: theelk801 Date: Tue, 6 Jan 2026 21:26:09 -0500 Subject: [PATCH] [ECL] Implement Unwelcome Sprite --- .../src/mage/cards/u/UnwelcomeSprite.java | 44 +++++++++++++++++++ Mage.Sets/src/mage/sets/LorwynEclipsed.java | 1 + 2 files changed, 45 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/u/UnwelcomeSprite.java diff --git a/Mage.Sets/src/mage/cards/u/UnwelcomeSprite.java b/Mage.Sets/src/mage/cards/u/UnwelcomeSprite.java new file mode 100644 index 00000000000..79a748d3bd1 --- /dev/null +++ b/Mage.Sets/src/mage/cards/u/UnwelcomeSprite.java @@ -0,0 +1,44 @@ +package mage.cards.u; + +import mage.MageInt; +import mage.abilities.common.SpellCastControllerTriggeredAbility; +import mage.abilities.condition.common.OpponentsTurnCondition; +import mage.abilities.effects.keyword.SurveilEffect; +import mage.abilities.keyword.FlyingAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class UnwelcomeSprite extends CardImpl { + + public UnwelcomeSprite(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{U}"); + + this.subtype.add(SubType.FAERIE); + this.subtype.add(SubType.ROGUE); + this.power = new MageInt(2); + this.toughness = new MageInt(1); + + // Flying + this.addAbility(FlyingAbility.getInstance()); + + // Whenever you cast a spell during an opponent's turn, surveil 2. + this.addAbility(new SpellCastControllerTriggeredAbility(new SurveilEffect(2), false) + .withTriggerCondition(OpponentsTurnCondition.instance)); + } + + private UnwelcomeSprite(final UnwelcomeSprite card) { + super(card); + } + + @Override + public UnwelcomeSprite copy() { + return new UnwelcomeSprite(this); + } +} diff --git a/Mage.Sets/src/mage/sets/LorwynEclipsed.java b/Mage.Sets/src/mage/sets/LorwynEclipsed.java index 0a74475ad2f..56dd9fefca3 100644 --- a/Mage.Sets/src/mage/sets/LorwynEclipsed.java +++ b/Mage.Sets/src/mage/sets/LorwynEclipsed.java @@ -129,6 +129,7 @@ public final class LorwynEclipsed extends ExpansionSet { cards.add(new SetCardInfo("Thoughtweft Lieutenant", 246, Rarity.UNCOMMON, mage.cards.t.ThoughtweftLieutenant.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Thoughtweft Lieutenant", 343, Rarity.UNCOMMON, mage.cards.t.ThoughtweftLieutenant.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Unexpected Assistance", 80, Rarity.COMMON, mage.cards.u.UnexpectedAssistance.class)); + cards.add(new SetCardInfo("Unwelcome Sprite", 81, Rarity.UNCOMMON, mage.cards.u.UnwelcomeSprite.class)); cards.add(new SetCardInfo("Vibrance", 249, Rarity.MYTHIC, mage.cards.v.Vibrance.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Vibrance", 295, Rarity.MYTHIC, mage.cards.v.Vibrance.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Vinebred Brawler", 201, Rarity.UNCOMMON, mage.cards.v.VinebredBrawler.class));