Menu

Submission for Grizzly Fate

215

Config

name=Grizzly Fate
image=http://mtgimage.com/card/grizzly%20fate.jpg
value=2.500
rarity=U
type=Sorcery
cost={3}{G}{G}
ability=Flashback {5}{G}{G}
timing=main
requires_groovy_code
oracle=Put two 2/2 green Bear creature tokens onto the battlefield. Threshold — Put four 2/2 green Bear creature tokens onto the battlefield instead if seven or more cards are in your graveyard. Flashback {5}{G}{G}

Script

[
    new MagicSpellCardEvent() {
        @Override
        public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
            return new MagicEvent(
                cardOnStack,
                this,
                "Put two 2/2 green Bear creature tokens onto the battlefield. " +
                "Put four 2/2 green Bear creature tokens onto the battlefield instead if seven or more cards are in your graveyard."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            if (MagicCondition.THRESHOLD_CONDITION.accept(event.getSource())) {
                game.doAction(new MagicPlayTokensAction(
                event.getPlayer(),
                TokenCardDefinitions.get("2/2 green Bear creature token"),
                4
                ));
            } else {
                game.doAction(new MagicPlayTokensAction(
                event.getPlayer(),
                TokenCardDefinitions.get("2/2 green Bear creature token"),
                2
                ));
            }
        }
    }
]
Pushed