Don't distrubute Nones from the hand overflow
This commit is contained in:
parent
1781614e27
commit
adfd2c81c8
|
@ -623,7 +623,7 @@ def game(send, notice, voice, devoice, get_event):
|
||||||
|
|
||||||
# Move the cards outside of the current hand size into
|
# Move the cards outside of the current hand size into
|
||||||
# the hand
|
# 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]
|
player.hand = player.hand[:hand_size]
|
||||||
for index in range(len(player.hand)):
|
for index in range(len(player.hand)):
|
||||||
if len(overflow) == 0:
|
if len(overflow) == 0:
|
||||||
|
|
Loading…
Reference in New Issue