Menu

Submission for Cabal Inquisitor

119

Config

name=Cabal Inquisitor
image=http://mtgimage.com/card/cabal%20inquisitor.jpg
value=2.500
rarity=C
type=Creature
subtype=Human,Minion
cost={1}{B}
pt=1/1
timing=main
requires_groovy_code
oracle=Threshold — {1}{B}, {T}, Exile two cards from your graveyard: Target player discards a card. Activate this ability only any time you could cast a sorcery, and only if seven or more cards are in your graveyard.

Script

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

def EFFECT = MagicRuleEventAction.create("Target player discards a card.");

[
    new MagicPermanentActivation(
        [
            MagicCondition.THRESHOLD_CONDITION,
            MagicConditionFactory.GraveyardAtLeast(2),
            MagicCondition.SORCERY_CONDITION
        ],
        new MagicActivationHints(MagicTiming.Draw),
        "Discard"
    ) {
        @Override
        public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
            return [new MagicPayManaCostEvent(source,"{1}{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