From 4ba5ccac2bbba7653f22a11fb78cfde6650ab889 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Thu, 1 Jul 2021 07:31:29 -0400 Subject: [PATCH] [AFR] Implemented +2 Mace --- Mage.Sets/src/mage/cards/p/Plus2Mace.java | 38 +++++++++++++++++++ .../sets/AdventuresInTheForgottenRealms.java | 1 + 2 files changed, 39 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/p/Plus2Mace.java diff --git a/Mage.Sets/src/mage/cards/p/Plus2Mace.java b/Mage.Sets/src/mage/cards/p/Plus2Mace.java new file mode 100644 index 0000000000..ec78c9dacd --- /dev/null +++ b/Mage.Sets/src/mage/cards/p/Plus2Mace.java @@ -0,0 +1,38 @@ +package mage.cards.p; + +import mage.abilities.common.SimpleStaticAbility; +import mage.abilities.effects.common.continuous.BoostEquippedEffect; +import mage.abilities.keyword.EquipAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class Plus2Mace extends CardImpl { + + public Plus2Mace(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{1}{W}"); + + this.subtype.add(SubType.EQUIPMENT); + + // Equipped creature gets +2/+2. + this.addAbility(new SimpleStaticAbility(new BoostEquippedEffect(2, 2))); + + // Equip {3} + this.addAbility(new EquipAbility(3)); + } + + private Plus2Mace(final Plus2Mace card) { + super(card); + } + + @Override + public Plus2Mace copy() { + return new Plus2Mace(this); + } +} diff --git a/Mage.Sets/src/mage/sets/AdventuresInTheForgottenRealms.java b/Mage.Sets/src/mage/sets/AdventuresInTheForgottenRealms.java index 6c74a2fc32..624fb05f20 100644 --- a/Mage.Sets/src/mage/sets/AdventuresInTheForgottenRealms.java +++ b/Mage.Sets/src/mage/sets/AdventuresInTheForgottenRealms.java @@ -65,6 +65,7 @@ public final class AdventuresInTheForgottenRealms extends ExpansionSet { cards.add(new SetCardInfo("Nadaar, Selfless Paladin", 27, Rarity.RARE, mage.cards.n.NadaarSelflessPaladin.class)); cards.add(new SetCardInfo("Plains", 262, Rarity.LAND, mage.cards.basiclands.Plains.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Plundering Barbarian", 158, Rarity.COMMON, mage.cards.p.PlunderingBarbarian.class)); + cards.add(new SetCardInfo("+2 Mace", 1, Rarity.COMMON, mage.cards.p.Plus2Mace.class)); cards.add(new SetCardInfo("Portable Hole", 33, Rarity.UNCOMMON, mage.cards.p.PortableHole.class)); cards.add(new SetCardInfo("Power Word Kill", 114, Rarity.UNCOMMON, mage.cards.p.PowerWordKill.class)); cards.add(new SetCardInfo("Prosperous Innkeeper", 200, Rarity.UNCOMMON, mage.cards.p.ProsperousInnkeeper.class));