2013-05-18 00:32:59 -07:00
|
|
|
[
|
|
|
|
new MagicWhenComesIntoPlayTrigger() {
|
2013-04-12 19:32:25 -07:00
|
|
|
@Override
|
|
|
|
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent, final MagicPlayer player) {
|
|
|
|
return new MagicEvent(
|
|
|
|
permanent,
|
|
|
|
MagicTargetChoice.TARGET_CREATURE,
|
|
|
|
MagicBounceTargetPicker.getInstance(),
|
|
|
|
this,
|
2013-05-18 00:41:07 -07:00
|
|
|
"Return target creature\$ to its owner's hand."
|
2013-04-12 19:32:25 -07:00
|
|
|
);
|
|
|
|
}
|
|
|
|
@Override
|
2013-05-18 00:32:59 -07:00
|
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
2013-04-12 19:32:25 -07:00
|
|
|
event.processTargetPermanent(game,new MagicPermanentAction() {
|
|
|
|
public void doAction(final MagicPermanent creature) {
|
|
|
|
game.doAction(new MagicRemoveFromPlayAction(creature,MagicLocationType.OwnersHand));
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
2013-05-18 00:32:59 -07:00
|
|
|
}
|
|
|
|
]
|