Menu

Submission for Sphinx Sovereign

196

Comment

tested in magarena 1.43

Config

name=Sphinx Sovereign
url=http://magiccards.info/ala/en/196.html
image=http://magiccards.info/scans/en/ala/196.jpg
value=3.027
rarity=M
type=Artifact,Creature
subtype=Sphinx
cost={4}{W}{U}{U}{B}
pt=6/6
ability=flying
timing=artifact
requires_groovy_code

Script

[
    new MagicAtEndOfTurnTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game, final MagicPermanent permanent, final MagicPlayer eotPlayer) {  
			return permanent.isController(eotPlayer) ?
				new MagicEvent(
					permanent,
					this,
					"If SN is untapped, PN gains 3 life. " +
					"Otherwise, each opponent loses 3 life."
				):
				MagicEvent.NONE;
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
			if(event.getPermanent().isUntapped()){
				game.doAction(new MagicChangeLifeAction(event.getPlayer(), 3));
			}else{
				game.doAction(new MagicChangeLifeAction(event.getPlayer().getOpponent(), -3));
			}
        }
    }
]
Pushed