Menu

Submission for Greel, Mind Raker

66

Config

name=Greel, Mind Raker
image=http://mtgimage.com/card/greel%2C%20mind%20raker.jpg
value=2.500
rarity=R
type=Legendary,Creature
subtype=Horror,Spellshaper
cost={3}{B}{B}
pt=3/3
timing=main
requires_groovy_code
oracle={X}{B}, {T}, Discard two cards: Target player discards X cards at random.

Script

[
    new MagicPermanentActivation(
        new MagicActivationHints(MagicTiming.Draw),
        "Discard"
    ) {
        @Override
        public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
            return [
                    new MagicPayManaCostEvent(source,"{X}{B}"),
                    new MagicTapEvent(source),
                    new MagicDiscardEvent(source),
                    new MagicDiscardEvent(source)
                ];
        }
        @Override
        public MagicEvent getPermanentEvent(final MagicPermanent source, final MagicPayedCost payedCost) {
            return new MagicEvent(
                source,
                MagicTargetChoice.NEG_TARGET_PLAYER,
                payedCost.getX(),          
                this,
                "Target player\$ discards RN cards at random."
            );
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            event.processTargetPlayer(game, {
                game.addEvent(MagicDiscardEvent.Random(event.getSource(), it, event.getRefInt()));
            });
        }
    }
]
Pushed