More info when restarting round due to losing cards
This commit is contained in:
parent
b8c6e2ac41
commit
81f618cabc
|
@ -658,12 +658,14 @@ def game(send, notice, voice, devoice, get_event):
|
|||
# Did we lose our call card?
|
||||
if round_call_card is None:
|
||||
# Yes, restart round
|
||||
send('Lost the black card, restarting round')
|
||||
return setup_round
|
||||
|
||||
# Did it remove a card from someone voting this round?
|
||||
for player in choosers:
|
||||
if None in player.hand:
|
||||
# Yes, restart round
|
||||
send('Lost a card from player\'s hand, restarting round')
|
||||
return setup_round
|
||||
|
||||
for player in card_choices:
|
||||
|
@ -673,6 +675,7 @@ def game(send, notice, voice, devoice, get_event):
|
|||
# in which case we might hit a None
|
||||
if None in player.hand:
|
||||
# Yes, restart round
|
||||
send('Lost a card from player\'s hand, restarting round')
|
||||
return setup_round
|
||||
|
||||
else:
|
||||
|
@ -774,6 +777,7 @@ def game(send, notice, voice, devoice, get_event):
|
|||
# Did we lose our call card?
|
||||
if round_call_card is None:
|
||||
# Yes, restart round
|
||||
send('Lost the black card, restarting round')
|
||||
return setup_round
|
||||
|
||||
# Did it affect any response cards on this round?
|
||||
|
@ -781,6 +785,7 @@ def game(send, notice, voice, devoice, get_event):
|
|||
for index in card_choices[player]:
|
||||
if player.hand[index] is None:
|
||||
# Yes, restart round
|
||||
send('Lost a card played this round, restarting round')
|
||||
return setup_round
|
||||
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue