Menu

Submission for Isperia, Supreme Judge

171

Config

name=Isperia, Supreme Judge
url=http://magiccards.info/rtr/en/171.html
image=http://magiccards.info/scans/en/rtr/171.jpg
value=3.888
rarity=M
type=Legendary,Creature
subtype=Sphinx
cost={2}{W}{W}{U}{U}
pt=6/4
ability=flying
timing=main
requires_groovy_code

Script

[
    new MagicWhenAttacksTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent creature) {
            return permanent.isEnemy(creature) ?			
                new MagicEvent(
                    permanent,
                    new MagicSimpleMayChoice(
                        MagicSimpleMayChoice.DRAW_CARDS,
                        1,
                        MagicSimpleMayChoice.DEFAULT_NONE
                    ),
                    this,
                    "PN may\$ draw a card."
                ) :
                MagicEvent.NONE;
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            if (event.isYes()) {
                game.doAction(new MagicDrawAction(event.getPlayer()));
            }
        }		
    }
]
Pushed