26 lines
1.1 KiB
Groovy
26 lines
1.1 KiB
Groovy
[
|
|
new MagicSpellCardEvent() {
|
|
@Override
|
|
public MagicEvent getEvent(final MagicCardOnStack cardOnStack, final MagicPayedCost payedCost) {
|
|
return new MagicEvent(
|
|
cardOnStack,
|
|
MagicTargetChoice.TARGET_CREATURE_YOU_CONTROL,
|
|
MagicBounceTargetPicker.getInstance(),
|
|
this,
|
|
"Exile target creature\$ you control, then return " +
|
|
"that card to the battlefield under your control."
|
|
);
|
|
}
|
|
@Override
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
|
event.processTargetPermanent(game,new MagicPermanentAction() {
|
|
public void doAction(final MagicPermanent creature) {
|
|
game.doAction(new MagicRemoveFromPlayAction(creature,MagicLocationType.Exile));
|
|
game.doAction(new MagicRemoveCardAction(creature.getCard(),MagicLocationType.Exile));
|
|
game.doAction(new MagicPlayCardAction(creature.getCard(),event.getPlayer(),MagicPlayCardAction.NONE));
|
|
}
|
|
});
|
|
}
|
|
}
|
|
]
|