Menu

Submission for Deity of Scars

118

Config

name=Deity of Scars
url=http://magiccards.info/eve/en/118.html
image=http://magiccards.info/scans/en/eve/118.jpg
value=4.056
rarity=R
type=Creature
subtype=Avatar,Spirit
cost={B/G}{B/G}{B/G}{B/G}{B/G}
pt=7/7
ability=trample;enters with -1/-1 2
timing=main
requires_groovy_code

Script

[
    new MagicPermanentActivation(
        new MagicActivationHints(MagicTiming.Pump),
        "Regen"
    ) {
        @Override
        public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
            return [
                new MagicPayManaCostEvent(source,"{B/G}"),
                new MagicRemoveCounterEvent(source,MagicCounterType.MinusOne,1),
                new MagicRegenerationConditionsEvent(source,this)
            ];
        }
        @Override
        public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
            return new MagicEvent(
                source,
                this,
                "Regenerate SN."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            game.doAction(new MagicRegenerateAction(event.getPermanent()));
        }
    }
]
Pushed