23 lines
848 B
Groovy
23 lines
848 B
Groovy
|
[
|
||
|
new MagicWhenComesIntoPlayTrigger() {
|
||
|
@Override
|
||
|
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent, final MagicPlayer player) {
|
||
|
return new MagicEvent(
|
||
|
permanent,
|
||
|
MagicTargetChoice.TARGET_BLACK_PERMANENT,
|
||
|
MagicExileTargetPicker.create(),
|
||
|
this,
|
||
|
"Exile target black permanent\$."
|
||
|
);
|
||
|
}
|
||
|
@Override
|
||
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
||
|
event.processTargetPermanent(game,new MagicPermanentAction() {
|
||
|
public void doAction(final MagicPermanent permanent) {
|
||
|
game.doAction(new MagicRemoveFromPlayAction(permanent,MagicLocationType.Exile));
|
||
|
}
|
||
|
});
|
||
|
}
|
||
|
}
|
||
|
]
|