From e8a0f29ae1fe3eab2cfa9c3c75cdceed9acec4cd Mon Sep 17 00:00:00 2001 From: theelk801 Date: Sun, 9 Apr 2023 09:11:41 -0400 Subject: [PATCH] [MOC] Implement Nesting Dovehawk --- .../src/mage/cards/n/NestingDovehawk.java | 51 +++++++++++++++++++ .../mage/sets/MarchOfTheMachineCommander.java | 1 + 2 files changed, 52 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/n/NestingDovehawk.java diff --git a/Mage.Sets/src/mage/cards/n/NestingDovehawk.java b/Mage.Sets/src/mage/cards/n/NestingDovehawk.java new file mode 100644 index 0000000000..9eaae7fa6c --- /dev/null +++ b/Mage.Sets/src/mage/cards/n/NestingDovehawk.java @@ -0,0 +1,51 @@ +package mage.cards.n; + +import mage.MageInt; +import mage.abilities.common.BeginningOfCombatTriggeredAbility; +import mage.abilities.common.EntersBattlefieldControlledTriggeredAbility; +import mage.abilities.effects.common.PopulateEffect; +import mage.abilities.effects.common.counter.AddCountersSourceEffect; +import mage.abilities.keyword.FlyingAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.constants.TargetController; +import mage.counters.CounterType; +import mage.filter.StaticFilters; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class NestingDovehawk extends CardImpl { + + public NestingDovehawk(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{W}"); + + this.subtype.add(SubType.BIRD); + this.power = new MageInt(2); + this.toughness = new MageInt(2); + + // Flying + this.addAbility(FlyingAbility.getInstance()); + + // At the beginning of combat on your turn, populate. + this.addAbility(new BeginningOfCombatTriggeredAbility(new PopulateEffect(), TargetController.YOU, false)); + + // Whenever a creature token enters the battlefield under your control, put a +1/+1 counter on Nesting Dovehawk. + this.addAbility(new EntersBattlefieldControlledTriggeredAbility( + new AddCountersSourceEffect(CounterType.P1P1.createInstance()), StaticFilters.FILTER_CREATURE_TOKEN + )); + } + + private NestingDovehawk(final NestingDovehawk card) { + super(card); + } + + @Override + public NestingDovehawk copy() { + return new NestingDovehawk(this); + } +} diff --git a/Mage.Sets/src/mage/sets/MarchOfTheMachineCommander.java b/Mage.Sets/src/mage/sets/MarchOfTheMachineCommander.java index 7bf76f40c0..fcfa289e2f 100644 --- a/Mage.Sets/src/mage/sets/MarchOfTheMachineCommander.java +++ b/Mage.Sets/src/mage/sets/MarchOfTheMachineCommander.java @@ -195,6 +195,7 @@ public final class MarchOfTheMachineCommander extends ExpansionSet { cards.add(new SetCardInfo("Myriad Landscape", 416, Rarity.UNCOMMON, mage.cards.m.MyriadLandscape.class)); cards.add(new SetCardInfo("Mystic Monastery", 417, Rarity.UNCOMMON, mage.cards.m.MysticMonastery.class)); cards.add(new SetCardInfo("Nadir Kraken", 228, Rarity.RARE, mage.cards.n.NadirKraken.class)); + cards.add(new SetCardInfo("Nesting Dovehawk", 17, Rarity.RARE, mage.cards.n.NestingDovehawk.class)); cards.add(new SetCardInfo("Nettlecyst", 367, Rarity.RARE, mage.cards.n.Nettlecyst.class)); cards.add(new SetCardInfo("Night's Whisper", 259, Rarity.COMMON, mage.cards.n.NightsWhisper.class)); cards.add(new SetCardInfo("Noxious Gearhulk", 260, Rarity.MYTHIC, mage.cards.n.NoxiousGearhulk.class));