Menu

Submission for Vile Deacon

85

Config

name=Vile Deacon
image=http://mtgimage.com/card/vile%20deacon.jpg
value=2.500
rarity=C
type=Creature
subtype=Human,Cleric
cost={2}{B}{B}
pt=2/2
timing=main
requires_groovy_code
oracle=Whenever Vile Deacon attacks, it gets +X/+X until end of turn, where X is the number of Clerics on the battlefield.

Script

[
    new MagicWhenSelfAttacksTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent attacker) {
            return new MagicEvent(
                permanent,
                this,
                "SN gets +X/+X until end of turn, where X is the number of Clerics in play."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            final int amount =game.getNrOfPermanents(MagicSubType.Cleric);
            game.doAction(new MagicChangeTurnPTAction(event.getPermanent(),amount,amount));
        }
    }
]
Pushed