convert from java code to groovy code

master
melvin 2013-04-01 21:46:11 +08:00
parent 37b5bb7d83
commit f39bdb3df6
2 changed files with 7 additions and 16 deletions

View File

@ -1,14 +1,5 @@
package magic.card; [
new MagicStatic(
import magic.model.MagicGame;
import magic.model.MagicPermanent;
import magic.model.MagicPowerToughness;
import magic.model.mstatic.MagicLayer;
import magic.model.mstatic.MagicStatic;
import magic.model.target.MagicTargetFilter;
public class Glen_Elendra_Liege {
public static final MagicStatic S1 = new MagicStatic(
MagicLayer.ModPT, MagicLayer.ModPT,
MagicTargetFilter.TARGET_BLACK_CREATURE_YOU_CONTROL) { MagicTargetFilter.TARGET_BLACK_CREATURE_YOU_CONTROL) {
@Override @Override
@ -19,8 +10,8 @@ public class Glen_Elendra_Liege {
public boolean condition(final MagicGame game,final MagicPermanent source,final MagicPermanent target) { public boolean condition(final MagicGame game,final MagicPermanent source,final MagicPermanent target) {
return source != target; return source != target;
} }
}; },
public static final MagicStatic S2 = new MagicStatic( new MagicStatic(
MagicLayer.ModPT, MagicLayer.ModPT,
MagicTargetFilter.TARGET_BLUE_CREATURE_YOU_CONTROL) { MagicTargetFilter.TARGET_BLUE_CREATURE_YOU_CONTROL) {
@Override @Override
@ -31,5 +22,5 @@ public class Glen_Elendra_Liege {
public boolean condition(final MagicGame game,final MagicPermanent source,final MagicPermanent target) { public boolean condition(final MagicGame game,final MagicPermanent source,final MagicPermanent target) {
return source != target; return source != target;
} }
}; }
} ]

View File

@ -10,4 +10,4 @@ pt=2/3
ability=flying ability=flying
static=player static=player
timing=fmain timing=fmain
requires_card_code requires_groovy_code