28 lines
1.1 KiB
Groovy
28 lines
1.1 KiB
Groovy
[
|
|
new MagicSpellCardEvent() {
|
|
@Override
|
|
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
|
|
return new MagicEvent(
|
|
cardOnStack,
|
|
MagicTargetChoice.TARGET_ARTIFACT_OR_CREATURE_CARD_FROM_ALL_GRAVEYARDS,
|
|
MagicGraveyardTargetPicker.PutOntoBattlefield,
|
|
this,
|
|
"Return target artifact or creature card\$ from a graveyard onto the battlefield under your control. "+
|
|
"Shuffle SN into its owner's library."
|
|
);
|
|
}
|
|
@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()
|
|
));
|
|
game.doAction(new MagicChangeCardDestinationAction(event.getCardOnStack(),MagicLocationType.OwnersLibrary));
|
|
}
|
|
});
|
|
}
|
|
}
|
|
]
|