From 8c6a55685d00836ac7ad076f6ba5ec9668defaa7 Mon Sep 17 00:00:00 2001 From: eaocto Date: Wed, 28 Nov 2018 21:27:22 +0700 Subject: [PATCH] Fixed; game needing players to play corresponding +4 or wildcard when skipped player who played +4 or wildcard get skipped before choosing color. --- actions.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/actions.py b/actions.py index c8c5f1e..6b03236 100644 --- a/actions.py +++ b/actions.py @@ -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: