From 0efcf8403e5a464fc4c8a933fb680a18d45b5cdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannes=20H=C3=B6ke?= Date: Tue, 1 Mar 2016 02:53:07 +0100 Subject: [PATCH] fix bluff card amounts --- bot.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bot.py b/bot.py index e3dd1ad..847d354 100644 --- a/bot.py +++ b/bot.py @@ -192,17 +192,17 @@ def chosen_card(bot, update): elif result_id == 'call_bluff': if player.prev.bluffing: bot.sendMessage(chat_id, text="Bluff called! Giving %d cards to %s" - % (game.draw_counter + 2, + % (game.draw_counter, player.prev.user.first_name)) - for i in range(game.draw_counter + 2): + for i in range(game.draw_counter): player.prev.cards.append(game.deck.draw()) else: bot.sendMessage(chat_id, text="%s didn't bluff! Giving %d cards to" " %s" % (player.prev.user.first_name, - game.draw_counter, + game.draw_counter + 2, player.user.first_name)) - for i in range(game.draw_counter): + for i in range(game.draw_counter + 2): player.cards.append(game.deck.draw()) game.draw_counter = 0