From 07cd325711ee76e72a4fc5ca83a061cbfcb56529 Mon Sep 17 00:00:00 2001 From: theelk801 Date: Thu, 14 Aug 2025 14:34:06 -0400 Subject: [PATCH] [TLE] Implement Deny Entry --- Mage.Sets/src/mage/cards/d/DenyEntry.java | 35 +++++++++++++++++++ .../sets/AvatarTheLastAirbenderEternal.java | 1 + 2 files changed, 36 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/d/DenyEntry.java diff --git a/Mage.Sets/src/mage/cards/d/DenyEntry.java b/Mage.Sets/src/mage/cards/d/DenyEntry.java new file mode 100644 index 00000000000..027b7c9f74d --- /dev/null +++ b/Mage.Sets/src/mage/cards/d/DenyEntry.java @@ -0,0 +1,35 @@ +package mage.cards.d; + +import mage.abilities.effects.common.CounterTargetEffect; +import mage.abilities.effects.common.DrawDiscardControllerEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.filter.StaticFilters; +import mage.target.TargetSpell; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class DenyEntry extends CardImpl { + + public DenyEntry(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{2}{U}"); + + // Counter target creature spell. Draw a card, then discard a card. + this.getSpellAbility().addEffect(new CounterTargetEffect()); + this.getSpellAbility().addTarget(new TargetSpell(StaticFilters.FILTER_SPELL_CREATURE)); + this.getSpellAbility().addEffect(new DrawDiscardControllerEffect(1, 1)); + } + + private DenyEntry(final DenyEntry card) { + super(card); + } + + @Override + public DenyEntry copy() { + return new DenyEntry(this); + } +} diff --git a/Mage.Sets/src/mage/sets/AvatarTheLastAirbenderEternal.java b/Mage.Sets/src/mage/sets/AvatarTheLastAirbenderEternal.java index e3ff9ce45f5..c9bae277bb0 100644 --- a/Mage.Sets/src/mage/sets/AvatarTheLastAirbenderEternal.java +++ b/Mage.Sets/src/mage/sets/AvatarTheLastAirbenderEternal.java @@ -28,6 +28,7 @@ public final class AvatarTheLastAirbenderEternal extends ExpansionSet { cards.add(new SetCardInfo("Appa, Aang's Companion", 214, Rarity.UNCOMMON, mage.cards.a.AppaAangsCompanion.class)); cards.add(new SetCardInfo("Bumi, Eclectic Earthbender", 248, Rarity.RARE, mage.cards.b.BumiEclecticEarthbender.class)); cards.add(new SetCardInfo("Capital Guard", 234, Rarity.COMMON, mage.cards.c.CapitalGuard.class)); + cards.add(new SetCardInfo("Deny Entry", 222, Rarity.COMMON, mage.cards.d.DenyEntry.class)); cards.add(new SetCardInfo("Force of Negation", 13, Rarity.MYTHIC, mage.cards.f.ForceOfNegation.class)); cards.add(new SetCardInfo("Katara, Waterbending Master", 93, Rarity.MYTHIC, mage.cards.k.KataraWaterbendingMaster.class)); cards.add(new SetCardInfo("The Great Henge", 41, Rarity.MYTHIC, mage.cards.t.TheGreatHenge.class));