diff --git a/Mage.Sets/src/mage/cards/p/PathOfTheAnimist.java b/Mage.Sets/src/mage/cards/p/PathOfTheAnimist.java new file mode 100644 index 00000000000..364c4813a13 --- /dev/null +++ b/Mage.Sets/src/mage/cards/p/PathOfTheAnimist.java @@ -0,0 +1,38 @@ +package mage.cards.p; + +import java.util.UUID; + +import mage.abilities.effects.common.WillOfThePlaneswalkersEffect; +import mage.abilities.effects.common.search.SearchLibraryPutInPlayEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.filter.StaticFilters; +import mage.filter.common.FilterBasicLandCard; +import mage.target.common.TargetCardInLibrary; + +/** + * + * @author TheElk801 + */ +public final class PathOfTheAnimist extends CardImpl { + + public PathOfTheAnimist(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{3}{G}"); + + // Search your library for up to two basic land cards, put them onto the battlefield tapped, then shuffle. + this.getSpellAbility().addEffect(new SearchLibraryPutInPlayEffect(new TargetCardInLibrary(0, 2, StaticFilters.FILTER_CARD_BASIC_LANDS), true)); + + // 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 PathOfTheAnimist(final PathOfTheAnimist card) { + super(card); + } + + @Override + public PathOfTheAnimist copy() { + return new PathOfTheAnimist(this); + } +} diff --git a/Mage.Sets/src/mage/sets/MarchOfTheMachineCommander.java b/Mage.Sets/src/mage/sets/MarchOfTheMachineCommander.java index 317a708f490..23a42f13cf3 100644 --- a/Mage.Sets/src/mage/sets/MarchOfTheMachineCommander.java +++ b/Mage.Sets/src/mage/sets/MarchOfTheMachineCommander.java @@ -231,6 +231,7 @@ public final class MarchOfTheMachineCommander extends ExpansionSet { cards.add(new SetCardInfo("Pain Distributor", 33, Rarity.RARE, mage.cards.p.PainDistributor.class)); cards.add(new SetCardInfo("Painful Truths", 262, Rarity.RARE, mage.cards.p.PainfulTruths.class)); 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 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)); diff --git a/Mage/src/main/java/mage/abilities/effects/common/WillOfThePlaneswalkersEffect.java b/Mage/src/main/java/mage/abilities/effects/common/WillOfThePlaneswalkersEffect.java new file mode 100644 index 00000000000..014762f7a00 --- /dev/null +++ b/Mage/src/main/java/mage/abilities/effects/common/WillOfThePlaneswalkersEffect.java @@ -0,0 +1,36 @@ +package mage.abilities.effects.common; + +import mage.abilities.Ability; +import mage.abilities.effects.OneShotEffect; +import mage.constants.AbilityWord; +import mage.constants.Outcome; +import mage.game.Game; + +/** + * @author TheElk801 + */ +public class WillOfThePlaneswalkersEffect extends OneShotEffect { + + public WillOfThePlaneswalkersEffect() { + super(Outcome.Benefit); + staticText = AbilityWord.WILL_OF_THE_COUNCIL.formatWord() + "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"; + concatBy("
"); + } + + private WillOfThePlaneswalkersEffect(final WillOfThePlaneswalkersEffect effect) { + super(effect); + } + + @Override + public WillOfThePlaneswalkersEffect copy() { + return new WillOfThePlaneswalkersEffect(this); + } + + @Override + public boolean apply(Game game, Ability source) { + // TODO: Implement when planes have been refactored + return true; + } +} diff --git a/Mage/src/main/java/mage/constants/AbilityWord.java b/Mage/src/main/java/mage/constants/AbilityWord.java index 6a8e916c062..91d7b988125 100644 --- a/Mage/src/main/java/mage/constants/AbilityWord.java +++ b/Mage/src/main/java/mage/constants/AbilityWord.java @@ -52,7 +52,8 @@ public enum AbilityWord { TEMPTING_OFFER("Tempting offer"), THRESHOLD("Threshold"), UNDERGROWTH("Undergrowth"), - WILL_OF_THE_COUNCIL("Will of the council"); + WILL_OF_THE_COUNCIL("Will of the council"), + WILL_OF_THE_PLANESWALKERS("Will of the planeswalkers"); private final String text;