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:
eaocto 2018-11-28 21:27:22 +07:00
parent 94ea61e941
commit 8c6a55685d

View file

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