2013-05-25 19:32:14 -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,
|
|
|
|
new MagicMayChoice(
|
|
|
|
MagicTargetChoice.ARTIFACT_YOU_CONTROL
|
|
|
|
),
|
|
|
|
MagicBounceTargetPicker.getInstance(),
|
|
|
|
this,
|
2013-05-25 19:43:47 -07:00
|
|
|
"You may\$ return an artifact you control to its owner's hand. " +
|
2013-04-12 19:32:25 -07:00
|
|
|
"If you don't, sacrifice SN."
|
|
|
|
);
|
|
|
|
}
|
|
|
|
@Override
|
2013-05-25 19:32:14 -07:00
|
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
2013-04-12 19:32:25 -07:00
|
|
|
if (event.isNo()) {
|
|
|
|
game.doAction(new MagicSacrificeAction(event.getPermanent()));
|
|
|
|
} else {
|
|
|
|
event.processTargetPermanent(game,new MagicPermanentAction() {
|
|
|
|
public void doAction(final MagicPermanent creature) {
|
|
|
|
game.doAction(new MagicRemoveFromPlayAction(creature,MagicLocationType.OwnersHand));
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
2013-05-25 19:32:14 -07:00
|
|
|
}
|
|
|
|
]
|