2013-02-24 21:36:44 -08:00
|
|
|
[
|
|
|
|
new MagicWhenComesIntoPlayTrigger() {
|
|
|
|
@Override
|
|
|
|
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent, final MagicPlayer player) {
|
|
|
|
return new MagicEvent(
|
|
|
|
permanent,
|
|
|
|
new MagicMayChoice(
|
|
|
|
MagicTargetChoice.TARGET_ARTIFACT_CARD_FROM_GRAVEYARD,
|
|
|
|
),
|
|
|
|
new MagicGraveyardTargetPicker(true),
|
|
|
|
this,
|
|
|
|
"PN may\$ return target artifact card\$ from your graveyard to the battlefield."
|
|
|
|
);
|
|
|
|
}
|
|
|
|
@Override
|
|
|
|
public void executeEvent(
|
|
|
|
final MagicGame game,
|
|
|
|
final MagicEvent event,
|
|
|
|
final Object[] choiceResults) {
|
2013-03-22 19:26:50 -07:00
|
|
|
if (event.isYes()) {
|
2013-03-21 06:35:09 -07:00
|
|
|
event.processTargetCard(game,new MagicCardAction() {
|
2013-02-24 21:36:44 -08:00
|
|
|
public void doAction(final MagicCard card) {
|
|
|
|
game.doAction(new MagicReanimateAction(event.getPlayer(),card,MagicPlayCardAction.NONE));
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|