From 37b7c09336e3d1f9232c1f8bcd73cbab710f82e9 Mon Sep 17 00:00:00 2001 From: theelk801 Date: Tue, 4 Apr 2023 21:50:51 -0400 Subject: [PATCH] [MOM] Implement Knight of the New Coalition --- .../mage/cards/k/KnightOfTheNewCoalition.java | 43 +++++++++++++++++++ .../src/mage/sets/MarchOfTheMachine.java | 1 + 2 files changed, 44 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/k/KnightOfTheNewCoalition.java diff --git a/Mage.Sets/src/mage/cards/k/KnightOfTheNewCoalition.java b/Mage.Sets/src/mage/cards/k/KnightOfTheNewCoalition.java new file mode 100644 index 0000000000..efda42de48 --- /dev/null +++ b/Mage.Sets/src/mage/cards/k/KnightOfTheNewCoalition.java @@ -0,0 +1,43 @@ +package mage.cards.k; + +import mage.MageInt; +import mage.abilities.common.EntersBattlefieldTriggeredAbility; +import mage.abilities.effects.common.CreateTokenEffect; +import mage.abilities.keyword.VigilanceAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.game.permanent.token.KnightWhiteBlueToken; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class KnightOfTheNewCoalition extends CardImpl { + + public KnightOfTheNewCoalition(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{W}"); + + this.subtype.add(SubType.HUMAN); + this.subtype.add(SubType.KNIGHT); + this.power = new MageInt(2); + this.toughness = new MageInt(2); + + // Vigilance + this.addAbility(VigilanceAbility.getInstance()); + + // When Knight of the New Coalition enters the battlefield, create a 2/2 white and blue Knight creature token with vigilance. + this.addAbility(new EntersBattlefieldTriggeredAbility(new CreateTokenEffect(new KnightWhiteBlueToken()))); + } + + private KnightOfTheNewCoalition(final KnightOfTheNewCoalition card) { + super(card); + } + + @Override + public KnightOfTheNewCoalition copy() { + return new KnightOfTheNewCoalition(this); + } +} diff --git a/Mage.Sets/src/mage/sets/MarchOfTheMachine.java b/Mage.Sets/src/mage/sets/MarchOfTheMachine.java index 1b4f52c089..921559de29 100644 --- a/Mage.Sets/src/mage/sets/MarchOfTheMachine.java +++ b/Mage.Sets/src/mage/sets/MarchOfTheMachine.java @@ -78,6 +78,7 @@ public final class MarchOfTheMachine extends ExpansionSet { cards.add(new SetCardInfo("Kami of Whispered Hopes", 196, Rarity.UNCOMMON, mage.cards.k.KamiOfWhisperedHopes.class)); cards.add(new SetCardInfo("Khenra Spellspear", 151, Rarity.UNCOMMON, mage.cards.k.KhenraSpellspear.class)); cards.add(new SetCardInfo("Kithkin Billyrider", 24, Rarity.COMMON, mage.cards.k.KithkinBillyrider.class)); + cards.add(new SetCardInfo("Knight of the New Coalition", 25, Rarity.COMMON, mage.cards.k.KnightOfTheNewCoalition.class)); cards.add(new SetCardInfo("Kroxa and Kunoros", 245, Rarity.MYTHIC, mage.cards.k.KroxaAndKunoros.class)); cards.add(new SetCardInfo("Lithomantic Barrage", 152, Rarity.UNCOMMON, mage.cards.l.LithomanticBarrage.class)); cards.add(new SetCardInfo("Marshal of Zhalfir", 246, Rarity.UNCOMMON, mage.cards.m.MarshalOfZhalfir.class));