convert from java code to groovy code
parent
88d383b46f
commit
3d9aa4b9f4
|
@ -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));
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
}
|
]
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue