From 4ebb658c4349db2218dfdb5aca35154327d4b0d1 Mon Sep 17 00:00:00 2001 From: theelk801 Date: Sun, 23 Apr 2023 16:28:33 -0400 Subject: [PATCH] [MOC] Implement Path of the Ghosthunter --- .../mage/cards/p/PathOfTheGhosthunter.java | 36 +++++++++++++++++++ .../mage/sets/MarchOfTheMachineCommander.java | 1 + 2 files changed, 37 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/p/PathOfTheGhosthunter.java diff --git a/Mage.Sets/src/mage/cards/p/PathOfTheGhosthunter.java b/Mage.Sets/src/mage/cards/p/PathOfTheGhosthunter.java new file mode 100644 index 00000000000..93672203c01 --- /dev/null +++ b/Mage.Sets/src/mage/cards/p/PathOfTheGhosthunter.java @@ -0,0 +1,36 @@ +package mage.cards.p; + +import mage.abilities.dynamicvalue.common.ManacostVariableValue; +import mage.abilities.effects.common.CreateTokenEffect; +import mage.abilities.effects.common.WillOfThePlaneswalkersEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.game.permanent.token.SpiritWhiteToken; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class PathOfTheGhosthunter extends CardImpl { + + public PathOfTheGhosthunter(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{X}{1}{W}"); + + // Create X 1/1 white Spirit creature tokens with flying. + this.getSpellAbility().addEffect(new CreateTokenEffect(new SpiritWhiteToken(), ManacostVariableValue.REGULAR)); + + // Will of the Planeswalkers -- Starting with you, each player votes for planeswalk or chaos. If planeswalk gets more votes, planeswalk. If chaos gets more votes or the vote is tied, chaos ensues. + this.getSpellAbility().addEffect(new WillOfThePlaneswalkersEffect()); + } + + private PathOfTheGhosthunter(final PathOfTheGhosthunter card) { + super(card); + } + + @Override + public PathOfTheGhosthunter copy() { + return new PathOfTheGhosthunter(this); + } +} diff --git a/Mage.Sets/src/mage/sets/MarchOfTheMachineCommander.java b/Mage.Sets/src/mage/sets/MarchOfTheMachineCommander.java index 96871460eb1..f12bb923bc9 100644 --- a/Mage.Sets/src/mage/sets/MarchOfTheMachineCommander.java +++ b/Mage.Sets/src/mage/sets/MarchOfTheMachineCommander.java @@ -233,6 +233,7 @@ public final class MarchOfTheMachineCommander extends ExpansionSet { cards.add(new SetCardInfo("Path of Ancestry", 418, Rarity.COMMON, mage.cards.p.PathOfAncestry.class)); cards.add(new SetCardInfo("Path of the Animist", 38, Rarity.RARE, mage.cards.p.PathOfTheAnimist.class)); cards.add(new SetCardInfo("Path of the Enigma", 23, Rarity.RARE, mage.cards.p.PathOfTheEnigma.class)); + cards.add(new SetCardInfo("Path of the Ghosthunter", 18, Rarity.RARE, mage.cards.p.PathOfTheGhosthunter.class)); cards.add(new SetCardInfo("Path to Exile", 198, Rarity.UNCOMMON, mage.cards.p.PathToExile.class)); cards.add(new SetCardInfo("Perplexing Test", 229, Rarity.RARE, mage.cards.p.PerplexingTest.class)); cards.add(new SetCardInfo("Phyrexian Delver", 263, Rarity.RARE, mage.cards.p.PhyrexianDelver.class));