reset draw counter after bluffing

This commit is contained in:
Jannes Höke 2016-03-01 02:19:42 +01:00
parent 7c502598c7
commit 52fd88a87c

3
bot.py
View file

@ -203,7 +203,8 @@ def chosen_card(bot, update):
for i in range(game.draw_counter): for i in range(game.draw_counter):
player.cards.append(game.deck.draw()) player.cards.append(game.deck.draw())
game.turn() game.draw_counter = 0
game.turn()
elif result_id == 'draw': elif result_id == 'draw':
for n in range(game.draw_counter or 1): for n in range(game.draw_counter or 1):
player.cards.append(game.deck.draw()) player.cards.append(game.deck.draw())