Menu

Submission for Zombie Assassin

168

Config

name=Zombie Assassin
image=http://mtgimage.com/card/zombie%20assassin.jpg
value=2.500
rarity=C
type=Creature
subtype=Zombie,Assassin
cost={4}{B}
pt=3/2
timing=main
requires_groovy_code
oracle={T}, Exile two cards from your graveyard and Zombie Assassin: Destroy target nonblack creature. It can't be regenerated.

Script

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

def EFFECT = MagicRuleEventAction.create("Destroy target nonblack creature. It can't be regenerated.");

[
    new MagicPermanentActivation(
        [
            MagicConditionFactory.GraveyardAtLeast(2)
        ],
        new MagicActivationHints(MagicTiming.Removal),
        "Destroy"
    ) {
        @Override
        public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
            return [
                   new MagicTapEvent(source),
                   new MagicExileCardEvent(source, choice),
                   new MagicExileCardEvent(source, choice),
                   new MagicExileEvent(source)   
                   ];
        }

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