Menu

Submission for Nylea's Disciple

167

Config

name=Nylea's Disciple
url=http://magiccards.info/ths/en/167.html
image=http://magiccards.info/scans/en/ths/167.jpg
value=2.395
rarity=C
type=Creature
subtype=Centaur,Archer
cost={2}{G}{G}
pt=3/3
timing=main
requires_groovy_code

Script

[
    new MagicWhenComesIntoPlayTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent, final MagicPayedCost payedCost) {
            return new MagicEvent(
                permanent,
                this,
                "PN gains life equal to PN's devotion to green. ("+permanent.getController().getDevotion(MagicColor.Green)+")"
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            final int amount = event.getPlayer().getDevotion(MagicColor.Green);
            game.doAction(new MagicChangeLifeAction(event.getPlayer(),amount));
        }
    }
]
Pushed