Menu

Submission for Magister Sphinx

89

Comment

tested in magarena 1.43

Config

name=Magister Sphinx
url=http://magiccards.info/arc/en/89.html
image=http://magiccards.info/scans/en/arc/89.jpg
value=3.896
rarity=R
type=Artifact,Creature
subtype=Sphinx
cost={4}{W}{U}{B}
pt=5/5
ability=flying
timing=artifact
requires_groovy_code

Script

[
    new MagicWhenComesIntoPlayTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPayedCost payedCost) {     
            return new MagicEvent(
                permanent,
                MagicTargetChoice.TARGET_PLAYER,
                this,
                "Target player\$'s life total becomes 10."
            );
        }
		@Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            event.processTargetPlayer(game,new MagicPlayerAction() {
                public void doAction(final MagicPlayer player) {
                    final int amount = 10 - player.getLife();
					game.doAction(new MagicChangeLifeAction(player,amount));
                }
            });
        }
    }    
]
Pushed