convert from java code to groovy code

master
melvin 2013-03-18 14:09:35 +08:00
parent 88d383b46f
commit 3d9aa4b9f4
2 changed files with 5 additions and 15 deletions

View File

@ -1,15 +1,5 @@
package magic.card; [
new MagicWhenComesIntoPlayTrigger() {
import magic.model.MagicGame;
import magic.model.MagicPermanent;
import magic.model.MagicPlayer;
import magic.model.event.MagicDiscardEvent;
import magic.model.event.MagicEvent;
import magic.model.trigger.MagicWhenComesIntoPlayTrigger;
public class Liliana_s_Specter {
public static final MagicWhenComesIntoPlayTrigger T = new MagicWhenComesIntoPlayTrigger() {
@Override @Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent, final MagicPlayer player) { public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent, final MagicPlayer player) {
final MagicPlayer opponent = player.getOpponent(); final MagicPlayer opponent = player.getOpponent();
@ -28,5 +18,5 @@ public class Liliana_s_Specter {
final MagicPlayer player=event.getPlayer(); final MagicPlayer player=event.getPlayer();
game.addEvent(new MagicDiscardEvent(permanent,player,1,false)); game.addEvent(new MagicDiscardEvent(permanent,player,1,false));
} }
}; }
} ]

View File

@ -9,4 +9,4 @@ cost={1}{B}{B}
pt=2/1 pt=2/1
ability=flying ability=flying
timing=fmain timing=fmain
requires_card_code requires_groovy_code