Menu

Submission for Grave Strength

71

Config

name=Grave Strength
image=http://mtgimage.com/card/grave%20strength.jpg
value=2.500
rarity=U
type=Sorcery
cost={1}{B}
timing=main
requires_groovy_code
oracle=Choose target creature. Put the top three cards of your library into your graveyard, then put a +1/+1 counter on that creature for each creature card in your graveyard.

Script

[
    new MagicSpellCardEvent() {
        @Override
        public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
            return new MagicEvent(
                cardOnStack,
                MagicTargetChoice.POS_TARGET_CREATURE,
                this,
                "PN puts the top three cards of his or her library into his or her graveyard,"+
                "then puts a +1/+1 counter on target creature\$ for each creature card in PN's graveyard."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            game.doAction(new MagicMillLibraryAction(event.getPlayer(),3));
                event.processTargetPermanent(game, {
                final int amount = game.filterCards(event.getPlayer(), MagicTargetFilterFactory.CREATURE_CARD_FROM_GRAVEYARD).size();
                    game.doAction(new MagicChangeCountersAction(it,MagicCounterType.PlusOne,amount))
            });
        }
    }
]
Pushed