From 846deec5371d592605e392d9314c823dc7d7a985 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juhani=20Krekel=C3=A4?= Date: Mon, 13 Jul 2020 01:27:58 +0300 Subject: [PATCH] Officially support choosing a card twice, as it was already possible due to a bug --- gameloop.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/gameloop.py b/gameloop.py index 2afe01a..615e23c 100644 --- a/gameloop.py +++ b/gameloop.py @@ -1047,11 +1047,7 @@ def game(send, notice, voice, devoice, get_event): selected_cards = [] for choice in choices: if 0 <= choice < len(player.hand): - if player.hand[choice] not in selected_cards: - selected_cards.append(choice) - else: - notice(nick, 'Can\'t play the same card twice') - break + selected_cards.append(player.hand[choice]) else: notice(nick, '%i not in your hand' % choice) break @@ -1060,8 +1056,6 @@ def game(send, notice, voice, devoice, get_event): # Failed to use some choice continue - selected_cards = [player.hand[i] for i in selected_cards] - card_choices[player] = selected_cards if player in choosers: choosers.remove(player)