27 lines
926 B
Groovy
27 lines
926 B
Groovy
[
|
|
new MagicSpellCardEvent() {
|
|
@Override
|
|
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
|
|
return new MagicEvent(
|
|
cardOnStack,
|
|
MagicTargetChoice.TARGET_CREATURE_CARD_FROM_GRAVEYARD,
|
|
new MagicGraveyardTargetPicker(true),
|
|
this,
|
|
"Return target creature card\$ from your graveyard to the battlefield."
|
|
);
|
|
}
|
|
|
|
@Override
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
|
event.processTargetCard(game,new MagicCardAction() {
|
|
public void doAction(final MagicCard targetCard) {
|
|
game.doAction(new MagicReanimateAction(
|
|
targetCard,
|
|
event.getPlayer()
|
|
));
|
|
}
|
|
});
|
|
}
|
|
}
|
|
]
|