Menu

Submission for

Comment

i hope i do it right. maybe need to add this filter TARGET_CREATURE_CARD_POWER_2_OR_LESS_FROM_GRAVEYARD

Config

name=Reveillark
url=http://magiccards.info/mma/en/26.html
image=http://magiccards.info/scans/en/mma/26.jpg
value=4.241
rarity=R
type=Creature
subtype=Elemental
cost={4}{W}
pt=4/3
ability=evoke {R}
timing=main
requires_groovy_code

Script

[
    new MagicWhenLeavesPlayTrigger() {
        @Override
        public MagicEvent executeTrigger(
                final MagicGame game,
                final MagicPermanent permanent,
                final MagicCardOnStack spell) {
            return new MagicEvent(
                spell,
                new MagicMayChoice(
                    MagicTargetChoice.TARGET_CREATURE_CARD_POWER_2_OR_LESS_FROM_GRAVEYARD
                ),
                MagicGraveyardTargetPicker.PutOntoBattlefield,
                this,
                "PN may\$ return target creature card\$ with power 2 or less from " +
                "his or her graveyard to the battlefield."
            );

            return new MagicEvent(
                spell,
                new MagicMayChoice(
                    MagicTargetChoice.TARGET_CREATURE_CARD_POWER_2_OR_LESS_FROM_GRAVEYARD
                ),
                MagicGraveyardTargetPicker.PutOntoBattlefield,
                this,
                "PN may\$ return target creature card\$ with power 2 or less from " +
                "his or her graveyard to the battlefield."
            );			
        }

        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            if (event.isYes()) {
                event.processTargetCard(game, {
                    final MagicCard card ->
                    game.doAction(new MagicReanimateAction(
                        card,
                        event.getPlayer()
                    ));
                });
            }
        }
    }
]
Pushed