magarena/release/Magarena/scripts/Petravark.groovy

24 lines
887 B
Groovy
Raw Normal View History

2013-05-18 00:20:52 -07:00
[
new MagicWhenComesIntoPlayTrigger() {
2013-04-12 19:32:25 -07:00
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent, final MagicPlayer player) {
return new MagicEvent(
permanent,
MagicTargetChoice.TARGET_LAND,
MagicExileTargetPicker.create(),
this,
2013-05-18 00:20:52 -07:00
"Exile target land\$."
2013-04-12 19:32:25 -07:00
);
}
@Override
2013-05-18 00:20:52 -07:00
public void executeEvent(final MagicGame game, final MagicEvent event) {
2013-04-12 19:32:25 -07:00
final MagicPermanent permanent = event.getPermanent();
event.processTargetPermanent(game,new MagicPermanentAction() {
public void doAction(final MagicPermanent creature) {
game.doAction(new MagicExileUntilThisLeavesPlayAction(permanent,creature));
}
});
}
2013-05-18 00:20:52 -07:00
}
]