From 5328b8408923fc5581ed7cbed40a179e7af8fbf6 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Wed, 20 Jun 2018 21:40:58 -0400 Subject: [PATCH] Implemented Graveyard Marshal --- .../src/mage/cards/g/GraveyardMarshal.java | 59 +++++++++++++++++++ Mage.Sets/src/mage/sets/CoreSet2019.java | 1 + 2 files changed, 60 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/g/GraveyardMarshal.java diff --git a/Mage.Sets/src/mage/cards/g/GraveyardMarshal.java b/Mage.Sets/src/mage/cards/g/GraveyardMarshal.java new file mode 100644 index 0000000000..ce5f6caca7 --- /dev/null +++ b/Mage.Sets/src/mage/cards/g/GraveyardMarshal.java @@ -0,0 +1,59 @@ +package mage.cards.g; + +import java.util.UUID; +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.SimpleActivatedAbility; +import mage.abilities.costs.common.ExileFromGraveCost; +import mage.abilities.costs.mana.ManaCostsImpl; +import mage.abilities.effects.common.CreateTokenEffect; +import mage.constants.SubType; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Zone; +import mage.filter.common.FilterCreatureCard; +import mage.game.permanent.token.ZombieToken; +import mage.target.common.TargetCardInYourGraveyard; + +/** + * + * @author TheElk801 + */ +public final class GraveyardMarshal extends CardImpl { + + private static final FilterCreatureCard filter + = new FilterCreatureCard("a creature card from your graveyard"); + + public GraveyardMarshal(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{B}{B}"); + + this.subtype.add(SubType.ZOMBIE); + this.subtype.add(SubType.SOLDIER); + this.power = new MageInt(3); + this.toughness = new MageInt(2); + + // {2}{B}, Exile a creature card from your graveyard: Create a tapped 2/2 black Zombie creature token. + Ability ability = new SimpleActivatedAbility( + Zone.BATTLEFIELD, + new CreateTokenEffect( + new ZombieToken(), + 1, true, false + ), + new ManaCostsImpl("{2}{B}") + ); + ability.addCost(new ExileFromGraveCost( + new TargetCardInYourGraveyard(filter) + )); + this.addAbility(ability); + } + + public GraveyardMarshal(final GraveyardMarshal card) { + super(card); + } + + @Override + public GraveyardMarshal copy() { + return new GraveyardMarshal(this); + } +} diff --git a/Mage.Sets/src/mage/sets/CoreSet2019.java b/Mage.Sets/src/mage/sets/CoreSet2019.java index 2ac6b046cd..732dd3a328 100644 --- a/Mage.Sets/src/mage/sets/CoreSet2019.java +++ b/Mage.Sets/src/mage/sets/CoreSet2019.java @@ -105,6 +105,7 @@ public final class CoreSet2019 extends ExpansionSet { cards.add(new SetCardInfo("Grasping Scoundrel", 312, Rarity.COMMON, mage.cards.g.GraspingScoundrel.class)); cards.add(new SetCardInfo("Gravedigger", 98, Rarity.UNCOMMON, mage.cards.g.Gravedigger.class)); cards.add(new SetCardInfo("Gravewaker", 293, Rarity.RARE, mage.cards.g.Gravewaker.class)); + cards.add(new SetCardInfo("Graveyard Marshal", 99, Rarity.RARE, mage.cards.g.GraveyardMarshal.class)); cards.add(new SetCardInfo("Guttersnipe", 145, Rarity.UNCOMMON, mage.cards.g.Guttersnipe.class)); cards.add(new SetCardInfo("Havoc Devils", 146, Rarity.COMMON, mage.cards.h.HavocDevils.class)); cards.add(new SetCardInfo("Herald of Faith", 13, Rarity.UNCOMMON, mage.cards.h.HeraldOfFaith.class));