From cba0094c207c12d9a80a0351a8b4374d2b4c39bc Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Wed, 17 Jun 2020 21:17:20 -0400 Subject: [PATCH] Implemented Nocturnal Feeder --- .../src/mage/cards/n/NocturnalFeeder.java | 46 +++++++++++++++++++ Mage.Sets/src/mage/sets/Jumpstart.java | 1 + 2 files changed, 47 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/n/NocturnalFeeder.java diff --git a/Mage.Sets/src/mage/cards/n/NocturnalFeeder.java b/Mage.Sets/src/mage/cards/n/NocturnalFeeder.java new file mode 100644 index 0000000000..2415335428 --- /dev/null +++ b/Mage.Sets/src/mage/cards/n/NocturnalFeeder.java @@ -0,0 +1,46 @@ +package mage.cards.n; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.DiesTriggeredAbility; +import mage.abilities.effects.common.GainLifeEffect; +import mage.abilities.effects.common.LoseLifeOpponentsEffect; +import mage.abilities.keyword.FlyingAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class NocturnalFeeder extends CardImpl { + + public NocturnalFeeder(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{B}"); + + this.subtype.add(SubType.VAMPIRE); + this.subtype.add(SubType.ROGUE); + this.power = new MageInt(2); + this.toughness = new MageInt(1); + + // Flying + this.addAbility(FlyingAbility.getInstance()); + + // When Nocturnal Feeder dies, each opponent loses 2 life and you gain 2 life. + Ability ability = new DiesTriggeredAbility(new LoseLifeOpponentsEffect(2)); + ability.addEffect(new GainLifeEffect(2).concatBy("and")); + this.addAbility(ability); + } + + private NocturnalFeeder(final NocturnalFeeder card) { + super(card); + } + + @Override + public NocturnalFeeder copy() { + return new NocturnalFeeder(this); + } +} diff --git a/Mage.Sets/src/mage/sets/Jumpstart.java b/Mage.Sets/src/mage/sets/Jumpstart.java index 9fa4085321..d3484dd77d 100644 --- a/Mage.Sets/src/mage/sets/Jumpstart.java +++ b/Mage.Sets/src/mage/sets/Jumpstart.java @@ -57,6 +57,7 @@ public final class Jumpstart extends ExpansionSet { cards.add(new SetCardInfo("Maelstrom Archangel", 454, Rarity.MYTHIC, mage.cards.m.MaelstromArchangel.class)); cards.add(new SetCardInfo("Mire Triton", 257, Rarity.UNCOMMON, mage.cards.m.MireTriton.class)); cards.add(new SetCardInfo("Mirrodin's Core", 492, Rarity.UNCOMMON, mage.cards.m.MirrodinsCore.class)); + cards.add(new SetCardInfo("Nocturnal Feeder", 16, Rarity.COMMON, mage.cards.n.NocturnalFeeder.class)); cards.add(new SetCardInfo("Nyxathid", 259, Rarity.RARE, mage.cards.n.Nyxathid.class)); cards.add(new SetCardInfo("Pillar of Flame", 355, Rarity.RARE, mage.cards.p.PillarOfFlame.class)); cards.add(new SetCardInfo("Plains", 45, Rarity.LAND, mage.cards.basiclands.Plains.class, NON_FULL_USE_VARIOUS));