diff --git a/src/magic/card/Lifesmith.java b/release/Magarena/scripts/Lifesmith.groovy similarity index 55% rename from src/magic/card/Lifesmith.java rename to release/Magarena/scripts/Lifesmith.groovy index 8aef58300e..442d6e2c5a 100644 --- a/src/magic/card/Lifesmith.java +++ b/release/Magarena/scripts/Lifesmith.groovy @@ -1,17 +1,5 @@ -package magic.card; - -import magic.model.MagicGame; -import magic.model.MagicManaCost; -import magic.model.MagicPermanent; -import magic.model.action.MagicChangeLifeAction; -import magic.model.choice.MagicMayChoice; -import magic.model.choice.MagicPayManaCostChoice; -import magic.model.event.MagicEvent; -import magic.model.stack.MagicCardOnStack; -import magic.model.trigger.MagicWhenOtherSpellIsCastTrigger; - -public class Lifesmith { - public static final MagicWhenOtherSpellIsCastTrigger T = new MagicWhenOtherSpellIsCastTrigger() { +[ + new MagicWhenOtherSpellIsCastTrigger() { @Override public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicCardOnStack spell) { return (permanent.isFriend(spell) && @@ -22,16 +10,15 @@ public class Lifesmith { new MagicPayManaCostChoice(MagicManaCost.create("{1}")) ), this, - "PN may$ pay {1}$. If you do, you gain 3 life." + "PN may\$ pay {1}\$. If you do, you gain 3 life." ): MagicEvent.NONE; } - @Override public void executeEvent(final MagicGame game, final MagicEvent event) { if (event.isYes()) { game.doAction(new MagicChangeLifeAction(event.getPlayer(),3)); } } - }; -} + } +] diff --git a/release/Magarena/scripts/Lifesmith.txt b/release/Magarena/scripts/Lifesmith.txt index 13a3f5c1f6..895bd84433 100644 --- a/release/Magarena/scripts/Lifesmith.txt +++ b/release/Magarena/scripts/Lifesmith.txt @@ -8,4 +8,4 @@ subtype=Human,Artificer cost={1}{G} pt=2/1 timing=main -requires_card_code +requires_groovy_code