Added a check to ensure someone who joins after betting doesn't get checked to see if they won or not
This commit is contained in:
parent
e90bab4a84
commit
c560bc4210
1 changed files with 7 additions and 2 deletions
|
@ -379,6 +379,11 @@ class Game:
|
|||
|
||||
for entry in self.players:
|
||||
player = entry['player']
|
||||
# Quick check here to ensure the player isn't someone who got added
|
||||
# Specifically right after the betting phase
|
||||
if not hasattr(player, 'bet'):
|
||||
continue
|
||||
|
||||
hand = player.hand
|
||||
count = max(player.count)
|
||||
|
||||
|
|
Loading…
Reference in a new issue