2013-05-26 06:22:45 -07:00
|
|
|
[
|
|
|
|
new MagicWhenComesIntoPlayTrigger() {
|
|
|
|
@Override
|
2013-06-19 07:23:35 -07:00
|
|
|
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent, final MagicPayedCost payedCost) {
|
2013-06-03 22:46:22 -07:00
|
|
|
final MagicTargetFilter<MagicPermanent> targetFilter = new MagicOtherPermanentTargetFilter(
|
2013-05-26 06:22:45 -07:00
|
|
|
MagicTargetFilter.TARGET_CREATURE,permanent);
|
|
|
|
final MagicTargetChoice targetChoice = new MagicTargetChoice(
|
|
|
|
targetFilter,true,MagicTargetHint.Negative,"another creature to exile");
|
|
|
|
return new MagicEvent(
|
|
|
|
permanent,
|
|
|
|
new MagicMayChoice(targetChoice),
|
|
|
|
MagicExileTargetPicker.create(),
|
|
|
|
this,
|
|
|
|
"PN may\$ exile another creature\$."
|
|
|
|
);
|
|
|
|
}
|
|
|
|
@Override
|
|
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
|
|
|
if (event.isYes()) {
|
|
|
|
event.processTargetPermanent(game,new MagicPermanentAction() {
|
|
|
|
public void doAction(final MagicPermanent creature) {
|
|
|
|
game.doAction(new MagicExileUntilThisLeavesPlayAction(
|
|
|
|
event.getPermanent(),
|
|
|
|
creature
|
|
|
|
));
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|