From f9ebef401cb8ea51d07ac1bab9a192b0a65a743c Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Thu, 23 May 2019 19:35:01 -0400 Subject: [PATCH] Implemented Morphon, the Boundless --- .../mage/cards/m/MorophonTheBoundless.java | 68 +++++++++++++++++++ Mage.Sets/src/mage/sets/ModernHorizons.java | 1 + 2 files changed, 69 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/m/MorophonTheBoundless.java diff --git a/Mage.Sets/src/mage/cards/m/MorophonTheBoundless.java b/Mage.Sets/src/mage/cards/m/MorophonTheBoundless.java new file mode 100644 index 0000000000..654b54714e --- /dev/null +++ b/Mage.Sets/src/mage/cards/m/MorophonTheBoundless.java @@ -0,0 +1,68 @@ +package mage.cards.m; + +import mage.MageInt; +import mage.abilities.common.AsEntersBattlefieldAbility; +import mage.abilities.common.SimpleStaticAbility; +import mage.abilities.costs.mana.ManaCostsImpl; +import mage.abilities.effects.common.ChooseCreatureTypeEffect; +import mage.abilities.effects.common.continuous.BoostAllOfChosenSubtypeEffect; +import mage.abilities.effects.common.cost.SpellsCostReductionControllerEffect; +import mage.abilities.keyword.ChangelingAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.*; +import mage.filter.FilterCard; +import mage.filter.common.FilterCreaturePermanent; +import mage.filter.predicate.mageobject.ChosenSubtypePredicate; +import mage.filter.predicate.permanent.ControllerPredicate; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class MorophonTheBoundless extends CardImpl { + + private static final FilterCard filter = new FilterCard("Spells of the chosen type"); + private static final FilterCreaturePermanent filter2 + = new FilterCreaturePermanent("creatures you control of the chosen type"); + + static { + filter.add(new ChosenSubtypePredicate()); + filter2.add(new ControllerPredicate(TargetController.YOU)); + } + + public MorophonTheBoundless(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{7}"); + + this.addSuperType(SuperType.LEGENDARY); + this.subtype.add(SubType.SHAPESHIFTER); + this.power = new MageInt(6); + this.toughness = new MageInt(6); + + // Changeling + this.addAbility(ChangelingAbility.getInstance()); + + // As Morophon, the Boundless enters the battlefield, choose a creature type. + this.addAbility(new AsEntersBattlefieldAbility(new ChooseCreatureTypeEffect(Outcome.BoostCreature))); + + // Spells of the chosen type you cast cost {W}{U}{B}{R}{G} less to cast. This effect reduces only the amount of colored mana you pay. + this.addAbility(new SimpleStaticAbility(new SpellsCostReductionControllerEffect( + filter, new ManaCostsImpl("{W}{U}{B}{R}{G}") + ))); + + // Other creatures you control of the chosen type get +1/+1. + this.addAbility(new SimpleStaticAbility(new BoostAllOfChosenSubtypeEffect( + 1, 1, Duration.WhileOnBattlefield, filter2, true + ))); + } + + private MorophonTheBoundless(final MorophonTheBoundless card) { + super(card); + } + + @Override + public MorophonTheBoundless copy() { + return new MorophonTheBoundless(this); + } +} diff --git a/Mage.Sets/src/mage/sets/ModernHorizons.java b/Mage.Sets/src/mage/sets/ModernHorizons.java index 3d458ce2d3..4ce6baa24b 100644 --- a/Mage.Sets/src/mage/sets/ModernHorizons.java +++ b/Mage.Sets/src/mage/sets/ModernHorizons.java @@ -63,6 +63,7 @@ public final class ModernHorizons extends ExpansionSet { cards.add(new SetCardInfo("Lightning Skelemental", 208, Rarity.RARE, mage.cards.l.LightningSkelemental.class)); cards.add(new SetCardInfo("Man-o'-War", 55, Rarity.COMMON, mage.cards.m.ManOWar.class)); cards.add(new SetCardInfo("Martyr's Soul", 19, Rarity.COMMON, mage.cards.m.MartyrsSoul.class)); + cards.add(new SetCardInfo("Morophon, the Boundless", 1, Rarity.MYTHIC, mage.cards.m.MorophonTheBoundless.class)); cards.add(new SetCardInfo("Mother Bear", 171, Rarity.COMMON, mage.cards.m.MotherBear.class)); cards.add(new SetCardInfo("Munitions Expert", 209, Rarity.UNCOMMON, mage.cards.m.MunitionsExpert.class)); cards.add(new SetCardInfo("Nimble Mongoose", 174, Rarity.COMMON, mage.cards.n.NimbleMongoose.class));