36 lines
1.3 KiB
Groovy
36 lines
1.3 KiB
Groovy
[
|
|
new MagicSpellCardEvent() {
|
|
@Override
|
|
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
|
|
return new MagicEvent(
|
|
cardOnStack,
|
|
MagicTargetChoice.NEG_TARGET_CARD_FROM_ALL_GRAVEYARDS,
|
|
MagicGraveyardTargetPicker.ExileOpp,
|
|
this,
|
|
"Exile target card\$ from a graveyard. " +
|
|
"PN puts a 1/1 white and black Spirit creature token with flying onto the battlefield."
|
|
);
|
|
}
|
|
|
|
@Override
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
|
event.processTargetCard(game, {
|
|
final MagicCard card ->
|
|
game.doAction(new MagicRemoveCardAction(
|
|
card,
|
|
MagicLocationType.Graveyard
|
|
));
|
|
game.doAction(new MagicMoveCardAction(
|
|
card,
|
|
MagicLocationType.Graveyard,
|
|
MagicLocationType.Exile
|
|
));
|
|
game.doAction(new MagicPlayTokenAction(
|
|
event.getPlayer(),
|
|
TokenCardDefinitions.get("1/1 white and black Spirit creature token with flying")
|
|
));
|
|
});
|
|
}
|
|
}
|
|
]
|