Add script for Elderscale Wurm

master
hong yie 2014-01-15 02:17:25 +00:00
parent c727c86457
commit f64298b9e2
2 changed files with 41 additions and 0 deletions

View File

@ -0,0 +1,30 @@
[
new MagicWhenComesIntoPlayTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPayedCost payedCost) {
return new MagicEvent(
permanent,
this,
"When Elderscale Wurm enters the battlefield, if your life total is less than 7, your life total becomes 7."
);
}
@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
if (event.getplayer.getLife() < 7) {
event.getplayer.setLife(7);
}
return MagicEvent.NONE;
}
},
new MagicWhenDamageIsDealtTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicDamage damage) {
final MagicPlayer player = permanent.getController();
final MagicTarget target = damage.getTarget();
if (player == target && player.getLife() < 7) {
player.setLife(7);
}
return MagicEvent.NONE;
}
}
]

View File

@ -0,0 +1,11 @@
name=Elderscale Wurm
url=http://magiccards.info/m13/en/167.html
image=http://magiccards.info/scans/en/m13/167.jpg
value=3.972
rarity=M
type=Creature
subtype=Wurm
cost={4}{G}{G}{G}
pt=7/7
ability=trample
timing=main