From 3839b0c6655709616c4d1d6ab06122761b56a9ae Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Tue, 16 Jun 2020 22:14:57 -0400 Subject: [PATCH] Implemented Goblin Wizardry --- .../src/mage/cards/g/GoblinWizardry.java | 31 +++++++++++++++++++ Mage.Sets/src/mage/sets/CoreSet2021.java | 1 + .../permanent/token/GoblinWizardToken.java | 31 +++++++++++++++++++ 3 files changed, 63 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/g/GoblinWizardry.java create mode 100644 Mage/src/main/java/mage/game/permanent/token/GoblinWizardToken.java diff --git a/Mage.Sets/src/mage/cards/g/GoblinWizardry.java b/Mage.Sets/src/mage/cards/g/GoblinWizardry.java new file mode 100644 index 0000000000..c24367aeac --- /dev/null +++ b/Mage.Sets/src/mage/cards/g/GoblinWizardry.java @@ -0,0 +1,31 @@ +package mage.cards.g; + +import mage.abilities.effects.common.CreateTokenEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.game.permanent.token.GoblinWizardToken; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class GoblinWizardry extends CardImpl { + + public GoblinWizardry(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{3}{R}"); + + // Create two 1/1 red Goblin Wizard creature tokens with prowess. + this.getSpellAbility().addEffect(new CreateTokenEffect(new GoblinWizardToken(), 2)); + } + + private GoblinWizardry(final GoblinWizardry card) { + super(card); + } + + @Override + public GoblinWizardry copy() { + return new GoblinWizardry(this); + } +} diff --git a/Mage.Sets/src/mage/sets/CoreSet2021.java b/Mage.Sets/src/mage/sets/CoreSet2021.java index e196ae0464..c2106adb39 100644 --- a/Mage.Sets/src/mage/sets/CoreSet2021.java +++ b/Mage.Sets/src/mage/sets/CoreSet2021.java @@ -119,6 +119,7 @@ public final class CoreSet2021 extends ExpansionSet { cards.add(new SetCardInfo("Ghostly Pilferer", 52, Rarity.RARE, mage.cards.g.GhostlyPilferer.class)); cards.add(new SetCardInfo("Glorious Anthem", 21, Rarity.RARE, mage.cards.g.GloriousAnthem.class)); cards.add(new SetCardInfo("Goblin Arsonist", 147, Rarity.COMMON, mage.cards.g.GoblinArsonist.class)); + cards.add(new SetCardInfo("Goblin Wizardry", 148, Rarity.COMMON, mage.cards.g.GoblinWizardry.class)); cards.add(new SetCardInfo("Goremand", 101, Rarity.UNCOMMON, mage.cards.g.Goremand.class)); cards.add(new SetCardInfo("Grasp of Darkness", 102, Rarity.COMMON, mage.cards.g.GraspOfDarkness.class)); cards.add(new SetCardInfo("Griffin Aerie", 22, Rarity.UNCOMMON, mage.cards.g.GriffinAerie.class)); diff --git a/Mage/src/main/java/mage/game/permanent/token/GoblinWizardToken.java b/Mage/src/main/java/mage/game/permanent/token/GoblinWizardToken.java new file mode 100644 index 0000000000..04089b6217 --- /dev/null +++ b/Mage/src/main/java/mage/game/permanent/token/GoblinWizardToken.java @@ -0,0 +1,31 @@ +package mage.game.permanent.token; + +import mage.MageInt; +import mage.abilities.keyword.ProwessAbility; +import mage.constants.CardType; +import mage.constants.SubType; + +/** + * @author TheElk801 + */ +public final class GoblinWizardToken extends TokenImpl { + + public GoblinWizardToken() { + super("Goblin Wizard", "1/1 red Goblin Wizard creature token with prowess"); + cardType.add(CardType.CREATURE); + subtype.add(SubType.GOBLIN); + subtype.add(SubType.WIZARD); + color.setRed(true); + power = new MageInt(1); + toughness = new MageInt(1); + this.addAbility(new ProwessAbility()); + } + + private GoblinWizardToken(final GoblinWizardToken token) { + super(token); + } + + public GoblinWizardToken copy() { + return new GoblinWizardToken(this); + } +}