Menu

Submission for Slithermuse

50

Config

name=Slithermuse
image=http://mtgimage.com/card/slithermuse.jpg
value=2.500
rarity=R
type=Creature
subtype=Elemental
cost={2}{U}{U}
pt=3/3
ability=Evoke {3}{U}
timing=main
requires_groovy_code
oracle=When Slithermuse leaves the battlefield, choose an opponent. If that player has more cards in hand than you, draw cards equal to the difference. Evoke {3}{U}

Script

[
    new MagicWhenLeavesPlayTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicRemoveFromPlayAction act) {
            return permanent.getOpponent().getHandSize() >
                   permanent.getController().getHandSize() ?
                new MagicEvent(
                    permanent,
                    this,
                    "If opponent has more cards in hand than you, draw cards equal to the difference."
                ):
                MagicEvent.NONE;
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            final int amount = event.getPermanent().getOpponent().getHandSize() - 
                               event.getPermanent().getController().getHandSize();
            game.doAction(new MagicDrawAction(event.getPlayer(),amount));
        }
    }
]
Pushed