convert from java code to groovy code
parent
e80b8c3870
commit
bf84eef974
|
@ -1,24 +1,13 @@
|
|||
package magic.card;
|
||||
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicPermanent;
|
||||
import magic.model.MagicPlayer;
|
||||
import magic.model.action.MagicChangeLifeAction;
|
||||
import magic.model.action.MagicPlayerAction;
|
||||
import magic.model.choice.MagicTargetChoice;
|
||||
import magic.model.event.MagicEvent;
|
||||
import magic.model.trigger.MagicWhenComesIntoPlayTrigger;
|
||||
|
||||
|
||||
public class Highway_Robber {
|
||||
public static final MagicWhenComesIntoPlayTrigger T = new MagicWhenComesIntoPlayTrigger() {
|
||||
[
|
||||
new MagicWhenComesIntoPlayTrigger() {
|
||||
@Override
|
||||
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent, final MagicPlayer player) {
|
||||
return new MagicEvent(
|
||||
permanent,
|
||||
MagicTargetChoice.TARGET_OPPONENT,
|
||||
this,
|
||||
"Target opponent$ loses 2 life and PN gains 2 life.");
|
||||
"Target opponent$ loses 2 life and PN gains 2 life."
|
||||
);
|
||||
}
|
||||
@Override
|
||||
public void executeEvent(
|
||||
|
@ -31,5 +20,5 @@ public class Highway_Robber {
|
|||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
]
|
|
@ -8,4 +8,4 @@ subtype=Human,Mercenary
|
|||
cost={2}{B}{B}
|
||||
pt=2/2
|
||||
timing=main
|
||||
requires_card_code
|
||||
requires_groovy_code
|
||||
|
|
Loading…
Reference in New Issue