* Fixed more possible endless loops of while iterations not ending if a asked player left game.

This commit is contained in:
LevelX2 2014-06-05 23:18:39 +02:00
parent 6b817b0669
commit 53b8f1977a
67 changed files with 170 additions and 160 deletions

View file

@ -136,7 +136,7 @@ class SylvanLibraryEffect extends OneShotEffect {
if (numberOfCardsToPutBack > 1) {
TargetCard target2 = new TargetCard(Zone.PICK, new FilterCard("card to put on the top of your library (last chosen will be on top)"));
target2.setRequired(true);
while (cardsPutBack.size() > 1) {
while (controller.isInGame() && cardsPutBack.size() > 1) {
controller.choose(Outcome.Benefit, cardsPutBack, target2, game);
Card card = cardsPutBack.get(target2.getFirstTarget(), game);
if (card != null) {