2013-05-26 04:15:55 -07:00
|
|
|
[
|
|
|
|
new MagicSpellCardEvent() {
|
|
|
|
@Override
|
|
|
|
public MagicEvent getEvent(final MagicCardOnStack cardOnStack,final MagicPayedCost payedCost) {
|
|
|
|
return new MagicEvent(
|
|
|
|
cardOnStack,
|
2013-06-18 08:07:47 -07:00
|
|
|
MagicTargetChoice.TARGET_PERMANENT,
|
2013-05-26 04:15:55 -07:00
|
|
|
MagicBounceTargetPicker.getInstance(),
|
|
|
|
this,
|
|
|
|
"Return target permanent\$ to its owner's hand. " +
|
2013-06-18 08:07:47 -07:00
|
|
|
"If the buyback cost was payed, return SN to its owner's hand as it resolves."
|
2013-06-15 07:27:32 -07:00
|
|
|
);
|
2013-05-26 04:15:55 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
|
|
|
event.processTargetPermanent(game,new MagicPermanentAction() {
|
|
|
|
public void doAction(final MagicPermanent permanent) {
|
|
|
|
game.doAction(new MagicRemoveFromPlayAction(permanent,MagicLocationType.OwnersHand));
|
|
|
|
if (event.isBuyback()) {
|
|
|
|
game.doAction(new MagicChangeCardDestinationAction(event.getCardOnStack(), MagicLocationType.OwnersHand));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|