Menu

Submission for Laquatus's Creativity

88

Config

name=Laquatus's Creativity
image=http://mtgimage.com/card/laquatus%27s%20creativity.jpg
value=2.500
rarity=U
type=Sorcery
cost={4}{U}
timing=main
requires_groovy_code
oracle=Target player draws cards equal to the number of cards in his or her hand, then discards that many cards.

Script

[
    new MagicSpellCardEvent() {
        @Override
        public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
            return new MagicEvent(
                cardOnStack,
                MagicTargetChoice.TARGET_PLAYER,
                this,
                "Target player\$ draws cards equal to the number of cards in his or her hand, then discards that many cards."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            event.processTargetPlayer(game, {
                final int amount = it.getHandSize();
                game.doAction(new MagicDrawAction(it,amount));
                game.addEvent(new MagicDiscardEvent(event.getSource(), it, amount));
            });
        }
    }
]
Pushed