Add script for Magister Sphinx
parent
8a88e9e617
commit
43583b310d
|
@ -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));
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
]
|
|
@ -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
|
Loading…
Reference in New Issue