2013-05-26 03:31:04 -07:00
|
|
|
[
|
|
|
|
new MagicWhenComesIntoPlayTrigger() {
|
2013-04-12 19:32:25 -07:00
|
|
|
@Override
|
2013-06-19 07:23:35 -07:00
|
|
|
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent, final MagicPayedCost payedCost) {
|
2013-04-12 19:32:25 -07:00
|
|
|
final MagicTargetChoice targetChoice = new MagicTargetChoice(
|
2013-09-16 20:10:01 -07:00
|
|
|
new MagicOtherPermanentTargetFilter(
|
|
|
|
MagicTargetFilter.TARGET_NONLAND_PERMANENT,
|
|
|
|
permanent
|
|
|
|
),
|
|
|
|
MagicTargetHint.None,
|
|
|
|
"another target nonland permanent to exile"
|
|
|
|
);
|
2013-04-12 19:32:25 -07:00
|
|
|
return new MagicEvent(
|
|
|
|
permanent,
|
|
|
|
targetChoice,
|
|
|
|
MagicExileTargetPicker.create(),
|
|
|
|
this,
|
2013-05-26 03:31:04 -07:00
|
|
|
"Exile another target nonland permanent\$."
|
2013-04-12 19:32:25 -07:00
|
|
|
);
|
|
|
|
}
|
|
|
|
@Override
|
2013-05-26 03:31:04 -07:00
|
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
2013-04-12 19:32:25 -07:00
|
|
|
event.processTargetPermanent(game,new MagicPermanentAction() {
|
|
|
|
public void doAction(final MagicPermanent creature) {
|
2013-05-26 03:31:04 -07:00
|
|
|
game.doAction(new MagicExileUntilThisLeavesPlayAction(event.getPermanent(),creature));
|
2013-04-12 19:32:25 -07:00
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
2013-05-26 03:31:04 -07:00
|
|
|
}
|
|
|
|
]
|