Fixed; game needing players to play corresponding +4 or wildcard when skipped player who played +4 or wildcard get skipped before choosing color.
This commit is contained in:
parent
94ea61e941
commit
8c6a55685d
1 changed files with 5 additions and 0 deletions
|
@ -38,6 +38,11 @@ def do_skip(bot, player, job_queue=None):
|
|||
if (skipped_player.waiting_time < 0):
|
||||
skipped_player.waiting_time = 0
|
||||
|
||||
# if player get skipped after playing wildcard or +4
|
||||
# before getting to choose color, then choose color randomly
|
||||
if game.choosing_color:
|
||||
game.last_card.color = random.choice(c.COLORS)
|
||||
|
||||
try:
|
||||
skipped_player.draw()
|
||||
except DeckEmptyError:
|
||||
|
|
Loading…
Reference in a new issue