Menu

Submission for Sentry of the Underworld

202

Comment

tested in magarena 1.43

Config

name=Sentry of the Underworld
url=http://magiccards.info/ths/en/202.html
image=http://magiccards.info/scans/en/ths/202.jpg
value=2.500
rarity=U
type=Creature
subtype=Griffin,Skeleton
cost={3}{W}{B}
pt=3/3
ability=flying;vigilance
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,"{W}{B}"),
                new MagicPayLifeEvent(source,3),
                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