Add script for Magister Sphinx

master
Jericho Pumpkin 2013-11-15 10:40:38 +00:00
parent 8a88e9e617
commit 43583b310d
2 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,22 @@
[
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));
}
});
}
}
]

View File

@ -0,0 +1,12 @@
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