Implemented Goblin Wizardry

This commit is contained in:
Evan Kranzler 2020-06-16 22:14:57 -04:00
parent e3a1fee1ea
commit 3839b0c665
3 changed files with 63 additions and 0 deletions

View file

@ -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);
}
}

View file

@ -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));

View file

@ -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);
}
}