1
0
Fork 0
mirror of synced 2024-09-28 07:21:16 +12:00

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:
Phxntxm 2017-02-12 16:05:51 -06:00
parent e90bab4a84
commit c560bc4210

View file

@ -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)