36 lines
1.4 KiB
Groovy
36 lines
1.4 KiB
Groovy
[
|
|
new MagicLandfallTrigger() {
|
|
@Override
|
|
protected MagicEvent getEvent(final MagicPermanent permanent) {
|
|
final MagicTargetFilter<MagicPermanent> targetFilter =
|
|
new MagicTargetFilter.MagicOtherPermanentTargetFilter(
|
|
MagicTargetFilter.TARGET_NONLAND_PERMANENT,
|
|
permanent);
|
|
final MagicTargetChoice targetChoice =
|
|
new MagicTargetChoice(
|
|
targetFilter,
|
|
true,
|
|
MagicTargetHint.None,
|
|
"another target nonland permanent to exile");
|
|
return new MagicEvent(
|
|
permanent,
|
|
new MagicMayChoice(targetChoice),
|
|
MagicExileTargetPicker.create(),
|
|
this,
|
|
"PN may\$ exile another target nonland permanent\$."
|
|
);
|
|
}
|
|
|
|
@Override
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
|
if (event.isYes()) {
|
|
event.processTargetPermanent(game,new MagicPermanentAction() {
|
|
public void doAction(final MagicPermanent target) {
|
|
game.doAction(new MagicExileUntilThisLeavesPlayAction(event.getPermanent(),target));
|
|
}
|
|
});
|
|
}
|
|
}
|
|
}
|
|
]
|