Menu

Submission for Mindscour Dragon

41

Config

name=Mindscour Dragon
image=http://mtgimage.com/card/mindscour%20dragon.jpg
value=2.500
rarity=U
type=Creature
subtype=Dragon
cost={4}{U}{U}
pt=4/4
ability=Flying
timing=main
requires_groovy_code
oracle=Flying. Whenever Mindscour Dragon deals combat damage to an opponent, target player puts the top four cards of his or her library into his or her graveyard.

Script

[
    new MagicWhenDamageIsDealtTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicDamage damage) {
            return (damage.isSource(permanent) &&
                    permanent.isOpponent(damage.getTarget()) &&
                    damage.isCombat()) ?
                new MagicEvent(
                    permanent,
                    MagicTargetChoice.TARGET_PLAYER,
                    this,
                    "Target player\$ puts the top four cards of his or her library into his or her graveyard."
                ):
                MagicEvent.NONE;
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            event.processTargetPlayer(game, {
                game.doAction(new MagicMillLibraryAction(it, 4));
            });
        }
    }
]
Pushed