Menu

Submission for Rappelling Scouts

41

Config

name=Rappelling Scouts
image=http://mtgimage.com/card/rappelling%20scouts.jpg
value=2.500
rarity=R
type=Creature
subtype=Human,Rebel,Scout
cost={2}{W}{W}
pt=1/4
ability=Flying
timing=main
requires_groovy_code
oracle=Flying. {2}{W}: Rappelling Scouts gains protection from the color of your choice until end of turn.

Script

[
    new MagicPermanentActivation(
        new MagicActivationHints(MagicTiming.Pump),
        "Protection"
    ) {
        @Override
        public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
            return [new MagicPayManaCostEvent(source,"{2}{W}")];
        }
        @Override
        public MagicEvent getPermanentEvent(final MagicPermanent source, final MagicPayedCost payedCost) {
            return new MagicEvent(
                source,
                MagicColorChoice.ALL_INSTANCE,
                this,
                "SN gains protection from the color\$ of your choice until end of turn."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            game.doAction(new MagicGainAbilityAction(
                event.getPermanent(),
                event.getChosenColor().getProtectionAbility()
            ));
        }
    }
]
Pushed