magarena/release/Magarena/scripts/Faceless_Butcher.groovy

31 lines
1.1 KiB
Groovy
Raw Normal View History

2013-05-25 23:00:01 -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(
new MagicOtherPermanentTargetFilter(
MagicTargetFilter.TARGET_CREATURE,
permanent
),
MagicTargetHint.None,
"another target creature to exile"
);
2013-04-12 19:32:25 -07:00
return new MagicEvent(
permanent,
targetChoice,
MagicExileTargetPicker.create(),
this,
"Exile another target creature\$."
2013-04-12 19:32:25 -07:00
);
}
@Override
2013-05-25 23:00:01 -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-25 23:00:01 -07:00
game.doAction(new MagicExileUntilThisLeavesPlayAction(event.getPermanent(),creature));
2013-04-12 19:32:25 -07:00
}
});
}
2013-05-25 23:00:01 -07:00
}
]