Menu

Submission for Bearscape

229

Config

name=Bearscape
image=http://mtgimage.com/card/bearscape.jpg
value=2.500
rarity=R
type=Enchantment
cost={1}{G}{G}
timing=enchantment
requires_groovy_code
oracle={1}{G}, Exile two cards from your graveyard: Put a 2/2 green Bear creature token onto the battlefield.

Script

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

def EFFECT = MagicRuleEventAction.create("Put a 2/2 green Bear creature token onto the battlefield.");

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

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

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