* Manifold Insights - Fixed possible endless loop.

This commit is contained in:
LevelX2 2016-12-17 23:18:27 +01:00
parent 89718f0d0a
commit 9ea22d0af1

View file

@ -113,11 +113,13 @@ class ManifoldInsightsEffect extends OneShotEffect {
}
}
controller.moveCards(chosenCards, Zone.HAND, source, game);
while (topLib.size() > 0) {
while (topLib.size() > 0 && controller.isInGame()) {
Card card = topLib.getRandom(game);
if (card != null) {
topLib.remove(card);
controller.moveCardToLibraryWithInfo(card, source.getSourceId(), game, Zone.LIBRARY, false, false);
} else {
return false;
}
}
return true;