mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
* Manifold Insights - Fixed possible endless loop.
This commit is contained in:
parent
89718f0d0a
commit
9ea22d0af1
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue