2013-05-26 02:47:13 -07:00
|
|
|
[
|
|
|
|
new MagicWhenSpellIsCastTrigger() {
|
2013-04-12 19:32:25 -07:00
|
|
|
@Override
|
|
|
|
public MagicEvent executeTrigger(
|
|
|
|
final MagicGame game,
|
|
|
|
final MagicPermanent permanent,
|
|
|
|
final MagicCardOnStack spell) {
|
|
|
|
return new MagicEvent(
|
|
|
|
spell,
|
|
|
|
new MagicMayChoice(
|
|
|
|
MagicTargetChoice.TARGET_CREATURE_CARD_FROM_GRAVEYARD
|
|
|
|
),
|
2013-09-06 06:22:54 -07:00
|
|
|
MagicGraveyardTargetPicker.PutOntoBattlefield,
|
2013-04-12 19:32:25 -07:00
|
|
|
this,
|
2013-05-26 02:47:13 -07:00
|
|
|
"PN may\$ return target creature card\$ from " +
|
2013-04-12 19:32:25 -07:00
|
|
|
"his or her graveyard to the battlefield."
|
|
|
|
);
|
|
|
|
}
|
2013-06-23 18:29:26 -07:00
|
|
|
|
2013-04-12 19:32:25 -07:00
|
|
|
@Override
|
2013-05-26 02:47:13 -07:00
|
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
2013-04-12 19:32:25 -07:00
|
|
|
if (event.isYes()) {
|
|
|
|
event.processTargetCard(game,new MagicCardAction() {
|
|
|
|
public void doAction(final MagicCard card) {
|
|
|
|
game.doAction(new MagicReanimateAction(
|
|
|
|
card,
|
2013-07-10 05:01:39 -07:00
|
|
|
event.getPlayer()
|
2013-04-12 19:32:25 -07:00
|
|
|
));
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
2013-05-26 02:47:13 -07:00
|
|
|
}
|
|
|
|
]
|