Allow changing your card choice
This commit is contained in:
parent
11ac919d52
commit
8408e7f3a3
1 changed files with 4 additions and 3 deletions
|
@ -481,7 +481,7 @@ def game():
|
||||||
if player is czar:
|
if player is czar:
|
||||||
notice(nick, 'Czar can\'t choose now')
|
notice(nick, 'Czar can\'t choose now')
|
||||||
continue
|
continue
|
||||||
elif player not in choosers:
|
elif player not in choosers and player not in card_choices:
|
||||||
notice(nick, 'You\'ll get to choose next round')
|
notice(nick, 'You\'ll get to choose next round')
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
@ -505,6 +505,7 @@ def game():
|
||||||
continue
|
continue
|
||||||
|
|
||||||
card_choices[player] = selected_cards
|
card_choices[player] = selected_cards
|
||||||
|
if player in choosers:
|
||||||
choosers.remove(player)
|
choosers.remove(player)
|
||||||
notice(nick, combine_cards(round_call_card, [player.hand[i] for i in selected_cards]))
|
notice(nick, combine_cards(round_call_card, [player.hand[i] for i in selected_cards]))
|
||||||
|
|
||||||
|
@ -517,7 +518,7 @@ def game():
|
||||||
|
|
||||||
player = players[nick]
|
player = players[nick]
|
||||||
|
|
||||||
if player in choosers:
|
if player in choosers or player in card_choices:
|
||||||
send_cards(nick)
|
send_cards(nick)
|
||||||
else:
|
else:
|
||||||
notice(nick, 'You can\'t choose now')
|
notice(nick, 'You can\'t choose now')
|
||||||
|
|
Loading…
Reference in a new issue