From 6ad9107443fb8c62ba469e163c572363ffeb66b0 Mon Sep 17 00:00:00 2001 From: Pesakitan22 Date: Wed, 18 Apr 2018 09:44:05 +0700 Subject: [PATCH] fix stats --- actions.py | 12 ++++++------ game.py | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/actions.py b/actions.py index f00b3ca..36eee4a 100644 --- a/actions.py +++ b/actions.py @@ -107,19 +107,19 @@ def do_play_card(bot, player, result_id): send_async(bot, chat.id, text=__("{name} won!", multi=game.translate) .format(name=user.first_name)) + send_async(bot, chat.id, + text=__("Game ended! Flawless Victory!", multi=game.translate)) if us.stats: # us.games_played += 1 if game.players_won is 0: us.first_places += 1 - if game.mode == 'one': - gm.end_game(chat, user) - send_async(bot, chat.id, - text=__("Game ended! Flawless Victory!", multi=game.translate)) - - game.players_won += 1 + if game.mode == 'one': + gm.end_game(chat, user) + else: + game.players_won += 1 try: gm.leave_game(user, chat) diff --git a/game.py b/game.py index 5600f96..abf4d6a 100644 --- a/game.py +++ b/game.py @@ -64,7 +64,7 @@ class Game(object): return players def start(self): - if self.mode == None or self.mode != "wild" or self.mode != "one": + if self.mode == None or self.mode == "fast" self.deck._fill_classic_() else: self.deck._fill_wild_()