Menu

Submission for Rewind

65

Config

name=Rewind
image=http://magiccards.info/scans/en/m13/65.jpg
value=2.500
rarity=U
type=Instant
cost={2}{U}{U}
timing=counter
requires_groovy_code
oracle=Counter target spell. Untap up to four lands.

Script

[
    new MagicSpellCardEvent() {
        @Override
        public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
            return new MagicEvent(
                cardOnStack,
                MagicTargetChoice.NEG_TARGET_SPELL,
                this,
                "Counter target spell\$. Untap up to four lands."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            event.processTargetCardOnStack(game, {
                game.doAction(new MagicCounterItemOnStackAction(it));
            });
            game.addEvent(new MagicRepeatedPermanentsEvent(
                event.getSource(),
                MagicTargetChoice.TARGET_LAND,
                4,
                MagicChainEventFactory.Untap
            ));
        }
    }
]
Pushed