Menu

Submission for Cabal Surgeon

52

Config

name=Cabal Surgeon
image=http://mtgimage.com/card/cabal%20surgeon.jpg
value=2.500
rarity=C
type=Creature
subtype=Human,Minion
cost={2}{B}{B}
pt=2/1
timing=main
requires_groovy_code
oracle={2}{B}{B}, {T}, Exile two cards from your graveyard: Return target creature card from your graveyard to your hand.

Script

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

def EFFECT = MagicRuleEventAction.create("Return target creature card from your graveyard to your hand.");

[
    new MagicPermanentActivation(
        [MagicConditionFactory.GraveyardAtLeast(2)],
        new MagicActivationHints(MagicTiming.Token),
        "Token"
    ) {

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

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