convert from java code to groovy code
parent
c624a6a079
commit
da5fd417c7
|
@ -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
|
||||
));
|
||||
}
|
||||
};
|
||||
}
|
||||
]
|
|
@ -9,4 +9,4 @@ cost={1}{W}
|
|||
pt=2/3
|
||||
ability=cumulative upkeep {1}
|
||||
timing=main
|
||||
requires_card_code
|
||||
requires_groovy_code
|
||||
|
|
Loading…
Reference in New Issue