Menu

Submission for Second Wind

57

Config

name=Second Wind
image=http://mtgimage.com/card/second%20wind.jpg
value=2.500
rarity=U
type=Enchantment
subtype=Aura
cost={2}{U}
timing=aura
enchant=pump,pos creature
requires_groovy_code
oracle=Enchant creature. {T}: Tap enchanted creature. {T}: Untap enchanted creature.

Script

[
    new MagicPermanentActivation(
        new MagicActivationHints(MagicTiming.Tapping),
        "Tap"
    ) {
        @Override
        public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
            return [
                new MagicTapEvent(source)
            ];
        }
        @Override
        public MagicEvent getPermanentEvent(final MagicPermanent source, final MagicPayedCost payedCost) {
            return new MagicEvent(
                source,
                source.getEnchantedPermanent(),
                this,
                "Tap RN."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            game.doAction(new MagicTapAction(event.getRefPermanent()));
        }
    },
new MagicPermanentActivation(
        new MagicActivationHints(MagicTiming.Pump),
        "Untap"
    ) {
        @Override
        public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
            return [
                new MagicTapEvent(source)
            ];
        }
        @Override
        public MagicEvent getPermanentEvent(final MagicPermanent source, final MagicPayedCost payedCost) {
            return new MagicEvent(
                source,
                source.getEnchantedPermanent(),
                this,
                "Untap RN."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            game.doAction(new MagicUntapAction(event.getRefPermanent()));
        }
    }
]
Pushed