From c3e0e215e53da01b08b12a6bd98179ca33a2d056 Mon Sep 17 00:00:00 2001 From: theelk801 Date: Wed, 30 Oct 2024 09:55:50 -0400 Subject: [PATCH] [FDN] Implement Needletooth Pack --- .../src/mage/cards/n/NeedletoothPack.java | 47 +++++++++++++++++++ Mage.Sets/src/mage/sets/Foundations.java | 1 + 2 files changed, 48 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/n/NeedletoothPack.java diff --git a/Mage.Sets/src/mage/cards/n/NeedletoothPack.java b/Mage.Sets/src/mage/cards/n/NeedletoothPack.java new file mode 100644 index 00000000000..feda59c0a67 --- /dev/null +++ b/Mage.Sets/src/mage/cards/n/NeedletoothPack.java @@ -0,0 +1,47 @@ +package mage.cards.n; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.condition.common.MorbidCondition; +import mage.abilities.effects.common.counter.AddCountersTargetEffect; +import mage.abilities.hint.common.MorbidHint; +import mage.abilities.triggers.BeginningOfEndStepTriggeredAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.AbilityWord; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.counters.CounterType; +import mage.target.common.TargetControlledCreaturePermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class NeedletoothPack extends CardImpl { + + public NeedletoothPack(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{G}{G}"); + + this.subtype.add(SubType.DINOSAUR); + this.power = new MageInt(4); + this.toughness = new MageInt(5); + + // Morbid -- At the beginning of your end step, if a creature died this turn, put two +1/+1 counters on target creature you control. + Ability ability = new BeginningOfEndStepTriggeredAbility( + new AddCountersTargetEffect(CounterType.P1P1.createInstance(2)) + ).withInterveningIf(MorbidCondition.instance); + ability.addTarget(new TargetControlledCreaturePermanent()); + this.addAbility(ability.addHint(MorbidHint.instance).setAbilityWord(AbilityWord.MORBID)); + } + + private NeedletoothPack(final NeedletoothPack card) { + super(card); + } + + @Override + public NeedletoothPack copy() { + return new NeedletoothPack(this); + } +} diff --git a/Mage.Sets/src/mage/sets/Foundations.java b/Mage.Sets/src/mage/sets/Foundations.java index 4add2483fb9..91354d63541 100644 --- a/Mage.Sets/src/mage/sets/Foundations.java +++ b/Mage.Sets/src/mage/sets/Foundations.java @@ -190,6 +190,7 @@ public final class Foundations extends ExpansionSet { cards.add(new SetCardInfo("Muldrotha, the Gravetide", 243, Rarity.MYTHIC, mage.cards.m.MuldrothaTheGravetide.class)); cards.add(new SetCardInfo("Myojin of Night's Reach", 610, Rarity.RARE, mage.cards.m.MyojinOfNightsReach.class)); cards.add(new SetCardInfo("Mystical Teachings", 594, Rarity.UNCOMMON, mage.cards.m.MysticalTeachings.class)); + cards.add(new SetCardInfo("Needletooth Pack", 108, Rarity.UNCOMMON, mage.cards.n.NeedletoothPack.class)); cards.add(new SetCardInfo("Negate", 710, Rarity.COMMON, mage.cards.n.Negate.class)); cards.add(new SetCardInfo("Nessian Hornbeetle", 229, Rarity.UNCOMMON, mage.cards.n.NessianHornbeetle.class)); cards.add(new SetCardInfo("Niv-Mizzet, Visionary", 123, Rarity.MYTHIC, mage.cards.n.NivMizzetVisionary.class));