[J22] Implement Merfolk Pupil

This commit is contained in:
Evan Kranzler 2022-11-22 09:42:32 -05:00
parent ede17e2194
commit f59ae5f01c
2 changed files with 55 additions and 0 deletions

View file

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

View file

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