Menu

Submission for Crimson Roc

168

Config

name=Crimson Roc
image=http://mtgimage.com/card/crimson%20roc.jpg
value=2.500
rarity=U
type=Creature
subtype=Bird
cost={4}{R}
pt=2/2
ability=Flying
timing=main
requires_groovy_code
oracle=Flying. Whenever Crimson Roc blocks a creature without flying, Crimson Roc gets +1/+0 and gains first strike 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.hasAbility(MagicAbility.Flying) == false) ?
                new MagicEvent(
                    permanent,
                    this,
                    "SN gets +1/+0 and first strike until end of turn."
                ):
                MagicEvent.NONE;
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            game.doAction(new MagicChangeTurnPTAction(event.getPermanent(),1,0));
		game.doAction(new MagicGainAbilityAction(
                event.getPermanent(), 
                MagicAbility.FirstStrike
            ));
        }
    }
]
Pushed