diff --git a/src/magic/card/Megrim.java b/release/Magarena/scripts/Megrim.groovy similarity index 63% rename from src/magic/card/Megrim.java rename to release/Magarena/scripts/Megrim.groovy index a01ff50438..0a9b9b3fd9 100644 --- a/src/magic/card/Megrim.java +++ b/release/Magarena/scripts/Megrim.groovy @@ -1,15 +1,5 @@ -package magic.card; - -import magic.model.MagicCard; -import magic.model.MagicDamage; -import magic.model.MagicGame; -import magic.model.MagicPermanent; -import magic.model.action.MagicDealDamageAction; -import magic.model.event.MagicEvent; -import magic.model.trigger.MagicWhenDiscardedTrigger; - -public class Megrim { - public static final MagicWhenDiscardedTrigger T = new MagicWhenDiscardedTrigger() { +[ + new MagicWhenDiscardedTrigger() { @Override public MagicEvent getEvent(final MagicPermanent permanent,final MagicCard card) { return permanent.isEnemy(card) ? @@ -32,5 +22,5 @@ public class Megrim { ); game.doAction(new MagicDealDamageAction(damage)); } - }; -} + } +] diff --git a/release/Magarena/scripts/Megrim.txt b/release/Magarena/scripts/Megrim.txt index 9b3e53c855..e4e0e79872 100644 --- a/release/Magarena/scripts/Megrim.txt +++ b/release/Magarena/scripts/Megrim.txt @@ -6,4 +6,4 @@ rarity=U type=Enchantment cost={2}{B} timing=enchantment -requires_card_code +requires_groovy_code