Add script for Elderscale Wurm
parent
c727c86457
commit
f64298b9e2
|
@ -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;
|
||||
}
|
||||
}
|
||||
]
|
|
@ -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
|
Loading…
Reference in New Issue