1
0
Fork 0
mirror of synced 2024-06-22 04:20:16 +12:00

Don't let a player who hasn't bet play

This commit is contained in:
Phxntxm 2017-02-27 18:07:23 -06:00
parent d4c4c9e65a
commit 901870d4bf

View file

@ -288,8 +288,8 @@ class Game:
fmt = "You got a blackjack {0.member.mention}!\n\n{0}".format(player)
await self.bot.send_message(self.channel, fmt)
# Loop through each player (as long as their status is playing)
for entry in [p for p in self.players if p['status'] == 'playing']:
# Loop through each player (as long as their status is playing) and they have bet chips
for entry in [p for p in self.players if p['status'] == 'playing' and hasattr(p['player'], 'bet')]:
player = entry['player']
# Let them know it's their turn to play