39 lines
1.3 KiB
Groovy
39 lines
1.3 KiB
Groovy
def EVENT_ACTION = new MagicEventAction() {
|
|
@Override
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
|
event.processTargetCard(game,new MagicCardAction() {
|
|
public void doAction(final MagicCard card) {
|
|
game.doAction(new MagicReanimateAction(event.getPlayer(),card,MagicPlayCardAction.NONE));
|
|
}
|
|
});
|
|
}
|
|
};
|
|
|
|
[
|
|
new MagicSpellCardEvent() {
|
|
@Override
|
|
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
|
|
return new MagicEvent(
|
|
cardOnStack,
|
|
this,
|
|
"Each player puts a creature card from " +
|
|
"his or her graveyard onto the battlefield."
|
|
);
|
|
}
|
|
|
|
@Override
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
|
for (final MagicPlayer player : game.getPlayers()) {
|
|
game.addEvent(new MagicEvent(
|
|
event.getSource(),
|
|
player,
|
|
MagicTargetChoice.TARGET_CREATURE_CARD_FROM_GRAVEYARD,
|
|
new MagicGraveyardTargetPicker(true),
|
|
EVENT_ACTION,
|
|
"PN puts a creature card from his or her graveyard onto the battlefield."
|
|
));
|
|
}
|
|
}
|
|
}
|
|
]
|