Menu

Submission for Rashka the Slayer

115

Config

name=Rashka the Slayer
image=http://mtgimage.com/card/rashka%20the%20slayer.jpg
value=2.500
rarity=U
type=Legendary,Creature
subtype=Human,Archer
cost={3}{W}{W}
pt=3/3
ability=Reach
timing=main
requires_groovy_code
oracle=Reach. Whenever Rashka the Slayer blocks one or more black creatures, Rashka gets +1/+2 until end of turn.

Script

[
    new MagicWhenBlocksTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent blocker) {
            final MagicPermanent blocked=permanent.getBlockedCreature();
            return (permanent==blocker &&
                    blocked.isValid() &&
                    blocked.hasColor(MagicColor.Black)) ?
                new MagicEvent(
                    permanent,
                    this,
                    "SN gets +1/+2 until end of turn."
                ):
                MagicEvent.NONE;
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            game.doAction(new MagicChangeTurnPTAction(event.getPermanent(),1,2));
        }
    }
]
Pushed