From f2ee477d34092f62850b837da3c58307dd526fe0 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Wed, 28 Oct 2020 17:21:51 -0400 Subject: [PATCH] [CMR] Implemented Meteoric Mace --- Mage.Sets/src/mage/cards/m/MeteoricMace.java | 50 +++++++++++++++++++ Mage.Sets/src/mage/sets/CommanderLegends.java | 1 + 2 files changed, 51 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/m/MeteoricMace.java diff --git a/Mage.Sets/src/mage/cards/m/MeteoricMace.java b/Mage.Sets/src/mage/cards/m/MeteoricMace.java new file mode 100644 index 00000000000..4ec48967f2e --- /dev/null +++ b/Mage.Sets/src/mage/cards/m/MeteoricMace.java @@ -0,0 +1,50 @@ +package mage.cards.m; + +import mage.abilities.Ability; +import mage.abilities.common.SimpleStaticAbility; +import mage.abilities.effects.common.continuous.BoostEquippedEffect; +import mage.abilities.effects.common.continuous.GainAbilityAttachedEffect; +import mage.abilities.keyword.CascadeAbility; +import mage.abilities.keyword.EquipAbility; +import mage.abilities.keyword.TrampleAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.AttachmentType; +import mage.constants.CardType; +import mage.constants.SubType; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class MeteoricMace extends CardImpl { + + public MeteoricMace(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{4}{R}{R}"); + + this.subtype.add(SubType.EQUIPMENT); + + // Equipped creature gets +4/+0 and has trample. + Ability ability = new SimpleStaticAbility(new BoostEquippedEffect(4, 0)); + ability.addEffect(new GainAbilityAttachedEffect( + TrampleAbility.getInstance(), AttachmentType.EQUIPMENT + ).setText("and has trample")); + this.addAbility(ability); + + // Equip {4} + this.addAbility(new EquipAbility(4)); + + // Cascade + this.addAbility(new CascadeAbility()); + } + + private MeteoricMace(final MeteoricMace card) { + super(card); + } + + @Override + public MeteoricMace copy() { + return new MeteoricMace(this); + } +} diff --git a/Mage.Sets/src/mage/sets/CommanderLegends.java b/Mage.Sets/src/mage/sets/CommanderLegends.java index 2b005c361f2..16ef7298951 100644 --- a/Mage.Sets/src/mage/sets/CommanderLegends.java +++ b/Mage.Sets/src/mage/sets/CommanderLegends.java @@ -62,6 +62,7 @@ public final class CommanderLegends extends ExpansionSet { cards.add(new SetCardInfo("Mana Confluence", 721, Rarity.MYTHIC, mage.cards.m.ManaConfluence.class)); cards.add(new SetCardInfo("Marble Diamond", 323, Rarity.COMMON, mage.cards.m.MarbleDiamond.class)); cards.add(new SetCardInfo("Mask of Memory", 324, Rarity.UNCOMMON, mage.cards.m.MaskOfMemory.class)); + cards.add(new SetCardInfo("Meteoric Mace", 192, Rarity.UNCOMMON, mage.cards.m.MeteoricMace.class)); cards.add(new SetCardInfo("Mindless Automaton", 326, Rarity.UNCOMMON, mage.cards.m.MindlessAutomaton.class)); cards.add(new SetCardInfo("Natural Reclamation", 245, Rarity.COMMON, mage.cards.n.NaturalReclamation.class)); cards.add(new SetCardInfo("Nekusar, the Mindrazer", 529, Rarity.MYTHIC, mage.cards.n.NekusarTheMindrazer.class));