Menu

Submission for Organ Grinder

75

Config

name=Organ Grinder
image=http://mtgimage.com/card/organ%20grinder.jpg
value=2.500
rarity=C
type=Creature
subtype=Zombie
cost={2}{B}
pt=3/1
timing=main
requires_groovy_code
oracle={T}, Exile three cards from your graveyard: Target player loses 3 life.

Script

def choice = new MagicTargetChoice("a card from your graveyard");

def EFFECT = MagicRuleEventAction.create("Target player loses 3 life.");

[
    new MagicPermanentActivation(
        [MagicConditionFactory.GraveyardAtLeast(3)],
        new MagicActivationHints(MagicTiming.Removal),
        "-Life"
    ) {

        @Override
        public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
            return [
                new MagicTapEvent(source),
                new MagicExileCardEvent(source, choice),
                new MagicExileCardEvent(source, choice),
                new MagicExileCardEvent(source, choice)
            ];
        }

        @Override
        public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
            return EFFECT.getEvent(source);
        }
    }
]
Pushed