Menu

Submission for Pilfered Plans

90

Config

name=Pilfered Plans
url=http://magiccards.info/query?q=%21pilfered%20plans
image=http://mtgimage.com/card/pilfered%20plans.jpg
value=3.745
rarity=C
type=Sorcery
cost={1}{U}{B}
timing=main
requires_groovy_code

Script

[
    new MagicSpellCardEvent() {
        @Override
        public MagicEvent getEvent(final MagicCardOnStack cardOnStack, final MagicPayedCost payedCost) {
            return new MagicEvent(
                cardOnStack,
                MagicTargetChoice.TARGET_PLAYER,
                this,
                "Target player\$ puts the top two cards of his or her library into his or her graveyard. "
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            event.processTargetPlayer(game, {
                final MagicPlayer player ->
                game.doAction(new MagicMillLibraryAction(player,2));
                game.doAction(new MagicDrawAction(event.getPlayer(),2));
            });
        }
    }
]
Pushed