From 1127fec89507859afe3b9569a55796592d8257d3 Mon Sep 17 00:00:00 2001 From: Daniel Bomar Date: Sat, 27 Aug 2022 12:37:29 -0500 Subject: [PATCH] [DMU] Implemented Knight of Dusk's Shadow --- .../src/mage/cards/k/KnightOfDusksShadow.java | 53 +++++++++++++++++++ Mage.Sets/src/mage/sets/DominariaUnited.java | 1 + 2 files changed, 54 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/k/KnightOfDusksShadow.java diff --git a/Mage.Sets/src/mage/cards/k/KnightOfDusksShadow.java b/Mage.Sets/src/mage/cards/k/KnightOfDusksShadow.java new file mode 100644 index 0000000000..afc322b9cb --- /dev/null +++ b/Mage.Sets/src/mage/cards/k/KnightOfDusksShadow.java @@ -0,0 +1,53 @@ +package mage.cards.k; + +import java.util.UUID; +import mage.MageInt; +import mage.abilities.common.SimpleActivatedAbility; +import mage.abilities.common.SimpleStaticAbility; +import mage.abilities.costs.mana.ManaCostsImpl; +import mage.abilities.effects.common.continuous.BoostSourceEffect; +import mage.abilities.effects.common.continuous.CantGainLifeAllEffect; +import mage.constants.Duration; +import mage.constants.SubType; +import mage.abilities.keyword.MenaceAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.TargetController; + +/** + * + * @author weirddan455 + */ +public final class KnightOfDusksShadow extends CardImpl { + + public KnightOfDusksShadow(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{B}"); + + this.subtype.add(SubType.HUMAN); + this.subtype.add(SubType.KNIGHT); + this.power = new MageInt(2); + this.toughness = new MageInt(2); + + // Menace + this.addAbility(new MenaceAbility()); + + // Your opponents can't gain life. + this.addAbility(new SimpleStaticAbility(new CantGainLifeAllEffect(Duration.WhileOnBattlefield, TargetController.OPPONENT))); + + // {1}{B}: Knight of Dusk's Shadow gets +1/+1 until end of turn. + this.addAbility(new SimpleActivatedAbility( + new BoostSourceEffect(1, 1, Duration.EndOfTurn), + new ManaCostsImpl<>("{1}{B}") + )); + } + + private KnightOfDusksShadow(final KnightOfDusksShadow card) { + super(card); + } + + @Override + public KnightOfDusksShadow copy() { + return new KnightOfDusksShadow(this); + } +} diff --git a/Mage.Sets/src/mage/sets/DominariaUnited.java b/Mage.Sets/src/mage/sets/DominariaUnited.java index 0dabf41b1e..cc594a968c 100644 --- a/Mage.Sets/src/mage/sets/DominariaUnited.java +++ b/Mage.Sets/src/mage/sets/DominariaUnited.java @@ -120,6 +120,7 @@ public final class DominariaUnited extends ExpansionSet { cards.add(new SetCardInfo("Karplusan Forest", 250, Rarity.RARE, mage.cards.k.KarplusanForest.class)); cards.add(new SetCardInfo("King Darien XLVIII", 204, Rarity.RARE, mage.cards.k.KingDarienXLVIII.class)); cards.add(new SetCardInfo("Knight of Dawn's Light", 23, Rarity.UNCOMMON, mage.cards.k.KnightOfDawnsLight.class)); + cards.add(new SetCardInfo("Knight of Dusk's Shadow", 96, Rarity.UNCOMMON, mage.cards.k.KnightOfDusksShadow.class)); cards.add(new SetCardInfo("Lagomos, Hand of Hatred", 205, Rarity.UNCOMMON, mage.cards.l.LagomosHandOfHatred.class)); cards.add(new SetCardInfo("Leaf-Crowned Visionary", 167, Rarity.RARE, mage.cards.l.LeafCrownedVisionary.class)); cards.add(new SetCardInfo("Lightning Strike", 137, Rarity.COMMON, mage.cards.l.LightningStrike.class));