From f59ae5f01c765ce985cfafa563a62e57a9b88814 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Tue, 22 Nov 2022 09:42:32 -0500 Subject: [PATCH] [J22] Implement Merfolk Pupil --- Mage.Sets/src/mage/cards/m/MerfolkPupil.java | 54 ++++++++++++++++++++ Mage.Sets/src/mage/sets/Jumpstart2022.java | 1 + 2 files changed, 55 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/m/MerfolkPupil.java diff --git a/Mage.Sets/src/mage/cards/m/MerfolkPupil.java b/Mage.Sets/src/mage/cards/m/MerfolkPupil.java new file mode 100644 index 0000000000..7855592180 --- /dev/null +++ b/Mage.Sets/src/mage/cards/m/MerfolkPupil.java @@ -0,0 +1,54 @@ +package mage.cards.m; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.EntersBattlefieldTriggeredAbility; +import mage.abilities.common.SimpleActivatedAbility; +import mage.abilities.costs.common.ExileSourceFromGraveCost; +import mage.abilities.costs.mana.ManaCostsImpl; +import mage.abilities.effects.common.DrawDiscardControllerEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.constants.Zone; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class MerfolkPupil extends CardImpl { + + public MerfolkPupil(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{U}"); + + this.subtype.add(SubType.MERFOLK); + this.subtype.add(SubType.WIZARD); + this.power = new MageInt(1); + this.toughness = new MageInt(1); + + // When Merfolk Pupil enters the battlefield, draw a card, then discard a card. + this.addAbility(new EntersBattlefieldTriggeredAbility( + new DrawDiscardControllerEffect(1, 1) + )); + + // {1}{U}, Exile Merfolk Pupil from your graveyard: Draw a card, then discard a card. + Ability ability = new SimpleActivatedAbility( + Zone.GRAVEYARD, + new DrawDiscardControllerEffect(1, 1), + new ManaCostsImpl<>("{1}{U}") + ); + ability.addCost(new ExileSourceFromGraveCost()); + this.addAbility(ability); + } + + private MerfolkPupil(final MerfolkPupil card) { + super(card); + } + + @Override + public MerfolkPupil copy() { + return new MerfolkPupil(this); + } +} diff --git a/Mage.Sets/src/mage/sets/Jumpstart2022.java b/Mage.Sets/src/mage/sets/Jumpstart2022.java index fa2b11d361..cb2a848cca 100644 --- a/Mage.Sets/src/mage/sets/Jumpstart2022.java +++ b/Mage.Sets/src/mage/sets/Jumpstart2022.java @@ -51,6 +51,7 @@ public final class Jumpstart2022 extends ExpansionSet { cards.add(new SetCardInfo("Kothophed, Soul Hoarder", 431, Rarity.RARE, mage.cards.k.KothophedSoulHoarder.class)); cards.add(new SetCardInfo("Leonin Warleader", 208, Rarity.RARE, mage.cards.l.LeoninWarleader.class)); cards.add(new SetCardInfo("Magnifying Glass", 95, Rarity.UNCOMMON, mage.cards.m.MagnifyingGlass.class)); + cards.add(new SetCardInfo("Merfolk Pupil", 15, Rarity.COMMON, mage.cards.m.MerfolkPupil.class)); cards.add(new SetCardInfo("Mirror Image", 62, Rarity.UNCOMMON, mage.cards.m.MirrorImage.class)); cards.add(new SetCardInfo("Nezumi Bone-Reader", 323, Rarity.UNCOMMON, mage.cards.n.NezumiBoneReader.class)); cards.add(new SetCardInfo("Oathsworn Vampire", 70, Rarity.UNCOMMON, mage.cards.o.OathswornVampire.class));