forked from External/mage
Fixed cards with endless loops if a player left game while he has to make a choice.
This commit is contained in:
parent
8007b16d64
commit
1dabfbb07b
14 changed files with 21 additions and 19 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue