convert from java code to groovy code

master
melvin 2013-03-18 21:11:10 +08:00
parent c624a6a079
commit da5fd417c7
2 changed files with 5 additions and 14 deletions

View File

@ -1,14 +1,5 @@
package magic.card;
import magic.model.MagicCounterType;
import magic.model.MagicGame;
import magic.model.MagicPermanent;
import magic.model.action.MagicChangeLifeAction;
import magic.model.event.MagicEvent;
import magic.model.trigger.MagicWhenLeavesPlayTrigger;
public class Revered_Unicorn {
public static final MagicWhenLeavesPlayTrigger T2 = new MagicWhenLeavesPlayTrigger() {
[
new MagicWhenLeavesPlayTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent left) {
return (permanent == left) ?
@ -30,5 +21,5 @@ public class Revered_Unicorn {
amount
));
}
};
}
]

View File

@ -9,4 +9,4 @@ cost={1}{W}
pt=2/3
ability=cumulative upkeep {1}
timing=main
requires_card_code
requires_groovy_code