Menu

Submission for Parallax Dementia

62

Comment

Hard to find an enchanting hint for this one, I was split between enchant=pump and enchant=destroy.

Config

name=Parallax Dementia
image=http://mtgimage.com/card/parallax%20dementia.jpg
value=2.500
rarity=C
type=Enchantment
subtype=Aura
cost={1}{B}
ability=Fading 1;\
        Enchanted creature gets +3/+2.
timing=aura
enchant=pump,creature
requires_groovy_code
oracle=Enchant creature. Fading 1. Enchanted creature gets +3/+2. When Parallax Dementia leaves the battlefield, destroy enchanted creature. That creature can't be regenerated.

Script

[
    new MagicWhenSelfLeavesPlayTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicRemoveFromPlayAction act) {
            final MagicPermanent enchantedPermanent = permanent.getEnchantedPermanent();
                new MagicEvent(
                    permanent,
                    enchantedPermanent,
                    this,
                    "Destroy RN."
                );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            game.doAction(MagicChangeStateAction.Set(event.getRefPermanent(),MagicPermanentState.CannotBeRegenerated));
            game.doAction(new MagicDestroyAction(event.getRefPermanent()));
        }
    }
]
Pushed