29 lines
1.0 KiB
Groovy
29 lines
1.0 KiB
Groovy
[
|
|
new MagicSpellCardEvent() {
|
|
@Override
|
|
public MagicEvent getEvent(
|
|
final MagicCardOnStack cardOnStack,
|
|
final MagicPayedCost payedCost) {
|
|
return new MagicEvent(
|
|
cardOnStack,
|
|
MagicTargetChoice.NEG_TARGET_CREATURE,
|
|
MagicBounceTargetPicker.getInstance(),
|
|
this,
|
|
"Exile target creature\$, then populate."
|
|
);
|
|
}
|
|
@Override
|
|
public void executeEvent(
|
|
final MagicGame game,
|
|
final MagicEvent event,
|
|
final Object[] choiceResults) {
|
|
event.processTargetPermanent(game,choiceResults,0,new MagicPermanentAction() {
|
|
public void doAction(final MagicPermanent creature) {
|
|
game.doAction(new MagicRemoveFromPlayAction(creature,MagicLocationType.Exile));
|
|
game.addEvent(new MagicPopulateEvent(event.getSource()));
|
|
}
|
|
});
|
|
}
|
|
}
|
|
]
|