2013-05-18 18:34:28 -07:00
|
|
|
[
|
|
|
|
new MagicWhenComesIntoPlayTrigger() {
|
|
|
|
@Override
|
|
|
|
public MagicEvent executeTrigger(
|
|
|
|
final MagicGame game,
|
|
|
|
final MagicPermanent permanent,
|
2013-06-19 07:23:35 -07:00
|
|
|
final MagicPayedCost payedCost) {
|
2013-05-18 18:34:28 -07:00
|
|
|
return new MagicEvent(
|
|
|
|
permanent,
|
|
|
|
MagicTargetChoice.TARGET_PERMANENT_YOU_CONTROL,
|
2013-06-30 01:53:17 -07:00
|
|
|
MagicBounceTargetPicker.create(),
|
2013-05-18 18:34:28 -07:00
|
|
|
this,
|
|
|
|
"Return a permanent\$ you control to its owner's hand."
|
|
|
|
);
|
|
|
|
}
|
|
|
|
@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
|
|
|
|
));
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|