From c910b0979849d1187559051345d5a9d968458ffb Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Thu, 26 May 2016 09:59:58 +0000 Subject: [PATCH] ep4 una nuova patch --- main.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 3a3f791..cd05355 100644 --- a/main.py +++ b/main.py @@ -293,8 +293,9 @@ class Game: random.seed() random.shuffle(topvotes) lynched = topvotes.pop() - self.message(bot, s.player_lynched.format(name=lynched.tusername, icon=lynched.role.icon, role=lynched.role.name)) - lynched.kill() + if lynched.alive: + self.message(bot, s.player_lynched.format(name=lynched.tusername, icon=lynched.role.icon, role=lynched.role.name)) + lynched.kill() else: self.message(bot, s.no_players_lynched) # Fai gli endday in un certo ordine. @@ -438,7 +439,7 @@ def endjoin(bot, update): game.phase = 'Voting' game.message(bot, s.join_phase_ended) try: - game.assignroles(bot, mifia=0, investigatore=0, angelo=0) + game.assignroles(bot, mifia=1, investigatore=0, angelo=1) except IndexError: game.message(bot, s.error_not_enough_players) game.endgame()