magarena/release/Magarena/scripts/Zombify.groovy

27 lines
935 B
Groovy
Raw Normal View History

2013-05-18 04:41:00 -07:00
[
new MagicSpellCardEvent() {
@Override
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
return new MagicEvent(
cardOnStack,
MagicTargetChoice.TARGET_CREATURE_CARD_FROM_GRAVEYARD,
MagicGraveyardTargetPicker.PutOntoBattlefield,
2013-05-18 04:41:00 -07:00
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,
2013-07-10 05:01:39 -07:00
event.getPlayer()
));
2013-05-18 04:41:00 -07:00
}
});
}
}
]