Menu

Submission for Grotesque Hybrid

63

Config

name=Grotesque Hybrid
image=http://mtgimage.com/card/grotesque%20hybrid.jpg
value=2.500
rarity=U
type=Creature
subtype=Zombie
cost={4}{B}
pt=3/3
ability=Discard a card: SN gains flying, protection from green and from white until end of turn.
timing=main
requires_groovy_code
oracle=Whenever Grotesque Hybrid deals combat damage to a creature, destroy that creature. It can't be regenerated. Discard a card: Grotesque Hybrid gains flying and protection from green and from white until end of turn.

Script

[
    new MagicWhenDamageIsDealtTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicDamage damage) {
            return (damage.isSource(permanent) && damage.isTargetCreature() && damage.isCombat()) ?
                new MagicEvent(
                    permanent,
                    damage.getTarget(),
                    this,
                    "Destroy RN. It can't be regenerated."
                ):
                MagicEvent.NONE;
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            event.processRefPermanent(game, {
                game.doAction(MagicChangeStateAction.Set(
                    it,
                    MagicPermanentState.CannotBeRegenerated
                ));
                game.doAction(new MagicDestroyAction(it));
            });
        }
    }
]
Pushed