Menu

Submission for 1/1 white and black Cleric creature token

Comment

token for Deathpact Angel. tested in magarena 1.43

Config

name=1/1 white and black Cleric creature token
token=Cleric
image=http://magiccards.info/extras/token/gatecrash/cleric.jpg
value=3
type=Creature
subtype=Cleric
color=wb
cost={0}
pt=1/1
requires_groovy_code

Script

[
    new MagicPermanentActivation(
        new MagicActivationHints(MagicTiming.Removal),
        "Animate"
    ) {

        @Override
        public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
            return [
                new MagicPayManaCostTapEvent(source,"{3}{W}{B}{B}"),
                new MagicSacrificeEvent(source)
            ];
        }

        @Override
        public MagicEvent getPermanentEvent(final MagicPermanent source, final MagicPayedCost payedCost) {
            return new MagicEvent(
                source,
                this,
                "Return a creature card named Deathpact Angel from PN's graveyard to the battlefield under his or her control."
            );
        }

        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            final List<MagicCard> cards = game.filterCards(
                    event.getPlayer(),
                    MagicTargetFilter.TARGET_CARD_FROM_GRAVEYARD);
            for (final MagicCard card : cards) {
                if (card.getName().equals("Deathpact Angel")) {
                    game.doAction(new MagicReanimateAction(
                        card,
                        event.getPlayer()
                    ));
					break;
                }
            }
        }
    }
]
Pushed