Fixed cards with endless loops if a player left game while he has to make a choice.

This commit is contained in:
LevelX2 2013-10-02 08:08:09 +02:00
parent 8007b16d64
commit 1dabfbb07b
14 changed files with 21 additions and 19 deletions

View file

@ -95,7 +95,7 @@ class ConundrumSphinxEffect extends OneShotEffect<ConundrumSphinxEffect> {
for (Player player: game.getPlayers().values()) {
if(player.getLibrary().size() > 0){
cardChoice.clearChoice();
while (!player.choose(Outcome.DrawCard, cardChoice, game)) {
while (!player.choose(Outcome.DrawCard, cardChoice, game) && player.isInGame()) {
game.debugMessage("player canceled choosing name. retrying.");
}
String cardName = cardChoice.getChoice();