From 24d79750cd09fd9976773ea531152c2b693ad8d0 Mon Sep 17 00:00:00 2001 From: melvin Date: Thu, 14 Mar 2013 21:36:01 +0800 Subject: [PATCH] convert from java code to groovy code --- .../Magarena/scripts/Drogskol_Reaver.groovy | 17 ++++------------- release/Magarena/scripts/Drogskol_Reaver.txt | 2 +- 2 files changed, 5 insertions(+), 14 deletions(-) rename src/magic/card/Drogskol_Reaver.java => release/Magarena/scripts/Drogskol_Reaver.groovy (60%) diff --git a/src/magic/card/Drogskol_Reaver.java b/release/Magarena/scripts/Drogskol_Reaver.groovy similarity index 60% rename from src/magic/card/Drogskol_Reaver.java rename to release/Magarena/scripts/Drogskol_Reaver.groovy index ff78ffb2d2..099ff46114 100644 --- a/src/magic/card/Drogskol_Reaver.java +++ b/release/Magarena/scripts/Drogskol_Reaver.groovy @@ -1,14 +1,5 @@ -package magic.card; - -import magic.model.MagicGame; -import magic.model.MagicPermanent; -import magic.model.action.MagicDrawAction; -import magic.model.event.MagicEvent; -import magic.model.trigger.MagicLifeChangeTriggerData; -import magic.model.trigger.MagicWhenLifeIsGainedTrigger; - -public class Drogskol_Reaver { - public static final MagicWhenLifeIsGainedTrigger T = new MagicWhenLifeIsGainedTrigger() { +[ + new MagicWhenLifeIsGainedTrigger() { @Override public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicLifeChangeTriggerData lifeChange) { return permanent.isController(lifeChange.player) ? @@ -26,5 +17,5 @@ public class Drogskol_Reaver { final Object[] choiceResults) { game.doAction(new MagicDrawAction(event.getPlayer(),1)); } - }; -} + } +] diff --git a/release/Magarena/scripts/Drogskol_Reaver.txt b/release/Magarena/scripts/Drogskol_Reaver.txt index a9065decdc..d5c58c9278 100644 --- a/release/Magarena/scripts/Drogskol_Reaver.txt +++ b/release/Magarena/scripts/Drogskol_Reaver.txt @@ -9,4 +9,4 @@ cost={5}{W}{U} pt=3/5 ability=flying,double strike,lifelink timing=fmain -requires_card_code +requires_groovy_code