2013-04-12 19:58:51 -07:00
|
|
|
[
|
|
|
|
new MagicWhenBlocksTrigger() {
|
|
|
|
@Override
|
|
|
|
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPermanent blocker) {
|
|
|
|
final MagicPermanent blocked = permanent.getBlockedCreature();
|
|
|
|
return (permanent == blocker && blocked.isValid()) ?
|
|
|
|
new MagicEvent(
|
|
|
|
permanent,
|
|
|
|
blocked,
|
|
|
|
this,
|
|
|
|
"Return RN to its owner's hand at end of combat."
|
|
|
|
):
|
|
|
|
MagicEvent.NONE;
|
|
|
|
}
|
|
|
|
@Override
|
2013-06-15 03:20:38 -07:00
|
|
|
public void executeEvent(final MagicGame game, final MagicEvent event) {
|
2013-09-14 03:33:47 -07:00
|
|
|
event.processRefPermanent(game, {
|
|
|
|
final MagicPermanent permanent ->
|
|
|
|
game.doAction(new MagicAddTriggerAction(
|
|
|
|
permanent,
|
|
|
|
MagicAtEndOfCombatTrigger.Return
|
|
|
|
))
|
2013-11-21 17:41:43 -08:00
|
|
|
});
|
2013-04-12 19:58:51 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|