Menu

Submission for Kami of the Painted Road

23

Config

name=Kami of the Painted Road
image=http://magiccards.info/scans/en/chk/23.jpg
value=2.500
rarity=C
type=Creature
subtype=Spirit
cost={4}{W}
pt=3/3
timing=main
requires_groovy_code
oracle=Whenever you cast a Spirit or Arcane spell, Kami of the Painted Road gains protection from the color of your choice until end of turn.

Script

[
    new MagicWhenYouCastSpiritOrArcaneTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game, final MagicPermanent permanent, final MagicCardOnStack cardOnStack) {
            return new MagicEvent(
                permanent,
                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