Menu

Submission for Snap

43

Config

name=Snap
image=http://magiccards.info/scans/en/ul/43.jpg
value=2.500
rarity=C
type=Instant
cost={1}{U}
timing=removal
requires_groovy_code
oracle=Return target creature to its owner's hand. Untap up to two lands.

Script

[
    new MagicSpellCardEvent() {
        @Override
        public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
            return new MagicEvent(
                cardOnStack,
                MagicTargetChoice.TARGET_CREATURE,
                this,
                "Return target creature\$ to its owner's hand. Untap up to two lands."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            event.processTargetPermanent(game, {
                game.doAction(new MagicRemoveFromPlayAction(it,MagicLocationType.OwnersHand));
            });
            game.addEvent(new MagicRepeatedPermanentsEvent(
                event.getSource(),
                MagicTargetChoice.TARGET_LAND,
                2,
                MagicChainEventFactory.Untap
            ));
        }
    }
]
Pushed