2013-05-26 03:30:35 -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-06-03 22:46:22 -07:00
|
|
|
final MagicTargetFilter<MagicPermanent> targetFilter = new MagicOtherPermanentTargetFilter(
|
2013-04-12 19:32:25 -07:00
|
|
|
MagicTargetFilter.TARGET_CREATURE_WITH_SHADOW,permanent);
|
|
|
|
final MagicTargetChoice targetChoice = new MagicTargetChoice(
|
|
|
|
targetFilter,true,MagicTargetHint.None,"another creature with shadow to exile");
|
|
|
|
return new MagicEvent(
|
|
|
|
permanent,
|
|
|
|
targetChoice,
|
|
|
|
MagicExileTargetPicker.create(),
|
|
|
|
this,
|
2013-05-26 03:30:35 -07:00
|
|
|
"Exile another creature with shadow\$."
|
2013-04-12 19:32:25 -07:00
|
|
|
);
|
|
|
|
}
|
|
|
|
@Override
|
2013-05-26 03:30:35 -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:30:35 -07:00
|
|
|
game.doAction(new MagicExileUntilThisLeavesPlayAction(event.getPermanent(),creature));
|
2013-04-12 19:32:25 -07:00
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
2013-05-26 03:30:35 -07:00
|
|
|
}
|
|
|
|
]
|