From adfd2c81c80083397c354d136f2e3dcd4e592fbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juhani=20Krekel=C3=A4?= Date: Mon, 13 May 2019 10:38:04 +0300 Subject: [PATCH] Don't distrubute Nones from the hand overflow --- gameloop.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gameloop.py b/gameloop.py index 1b4dc48..cdb4d42 100644 --- a/gameloop.py +++ b/gameloop.py @@ -623,7 +623,7 @@ def game(send, notice, voice, devoice, get_event): # Move the cards outside of the current hand size into # the hand - overflow = player.hand[hand_size:] + overflow = [i for i in player.hand[hand_size:] if i is not None] player.hand = player.hand[:hand_size] for index in range(len(player.hand)): if len(overflow) == 0: