diff --git a/release/Magarena/scripts/Elderscale_Wurm.groovy b/release/Magarena/scripts/Elderscale_Wurm.groovy new file mode 100644 index 0000000000..cc8c4bef48 --- /dev/null +++ b/release/Magarena/scripts/Elderscale_Wurm.groovy @@ -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; + } + } +] diff --git a/release/Magarena/scripts/Elderscale_Wurm.txt b/release/Magarena/scripts/Elderscale_Wurm.txt new file mode 100644 index 0000000000..95d41f3cc4 --- /dev/null +++ b/release/Magarena/scripts/Elderscale_Wurm.txt @@ -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