Menu

Submission for

Config

name=Nicol Bolas
url=http://magiccards.info/query?q=%21nicol%20bolas
image=http://mtgimage.com/card/nicol%20bolas.jpg
value=4.136
rarity=R
type=Legendary,Creature
subtype=Elder,Dragon
cost={2}{U}{U}{B}{B}{R}{R}
pt=7/7
ability=flying;\
        At the beginning of your upkeep, you may pay {U}{B}{R}. If you don't, sacrifice SN.
timing=main
requires_groovy_code

Script

[
    new MagicWhenDamageIsDealtTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicDamage damage) {
            return (damage.getSource() == permanent &&
                permanent.isOpponent(damage.getTarget())) ?
                new MagicEvent(
                    permanent,
                    permanent.getOpponent(),
                    this,
                    "PN discards his or her hand."
                ):
                MagicEvent.NONE
        }

        @Override
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            game.addEvent(new MagicDiscardEvent(
                event.getPermanent(),
                event.getPlayer(),
                event.getPlayer().getHandSize()
            ));
        }
    }
]
Pushed