magarena/release/Magarena/scripts/Trostani_s_Judgment.groovy

24 lines
905 B
Groovy
Raw Normal View History

2013-02-19 05:42:50 -08:00
[
new MagicSpellCardEvent() {
@Override
2013-06-15 03:09:37 -07:00
public MagicEvent getEvent(final MagicCardOnStack cardOnStack, final MagicPayedCost payedCost) {
2013-02-19 05:42:50 -08:00
return new MagicEvent(
cardOnStack,
MagicTargetChoice.NEG_TARGET_CREATURE,
2013-06-30 01:53:17 -07:00
MagicBounceTargetPicker.create(),
2013-02-19 05:42:50 -08:00
this,
"Exile target creature\$, then populate."
);
}
@Override
2013-06-15 03:09:37 -07:00
public void executeEvent(final MagicGame game, final MagicEvent event) {
event.processTargetPermanent(game,new MagicPermanentAction() {
2013-02-19 05:42:50 -08:00
public void doAction(final MagicPermanent creature) {
game.doAction(new MagicRemoveFromPlayAction(creature,MagicLocationType.Exile));
game.addEvent(new MagicPopulateEvent(event.getSource()));
}
});
}
}
]