allow cards to be moved from the exile zone

This commit is contained in:
BetaSteward 2011-10-04 22:21:42 -04:00
parent 2f3108c57c
commit 1e5d68183f
2 changed files with 9 additions and 0 deletions

View file

@ -74,6 +74,12 @@ public class ReturnToHandTargetEffect extends OneShotEffect<ReturnToHandTargetEf
result |= card.moveToZone(Zone.HAND, source.getId(), game, true);
}
break;
case EXILED:
card = game.getCard(id);
if (card != null) {
result |= card.moveToZone(Zone.HAND, source.getId(), game, true);
}
break;
}
}
return result;

View file

@ -238,6 +238,9 @@ public abstract class CardImpl<T extends CardImpl<T>> extends MageObjectImpl<T>
case LIBRARY:
game.getPlayer(ownerId).removeFromLibrary(this, game);
break;
case EXILED:
game.getExile().removeCard(this, game);
break;
default:
//logger.warning("moveToZone, not fully implemented: from="+event.getFromZone() + ", to="+event.getToZone());
}