From 42ea82eb9a2af2d2597bdacf84f27d36e8e0eb96 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 27 May 2016 13:44:51 +0200 Subject: [PATCH] =?UTF-8?q?poi=20ti=20chiedi=20perch=C3=A8=20succede=20rob?= =?UTF-8?q?a=20come=20#12?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index a614701..9d41c12 100644 --- a/main.py +++ b/main.py @@ -315,8 +315,8 @@ class Game: """Aggiorna il conteggio dei voti mifiosi di tutti i giocatori.""" for player in self.players: player.mifiavotes = 0 - for player in self.players: - if isinstance(player.role, Mifioso) and player.alive: + for player in self.mifiosiingame: + if player.alive: if player.role.target is not None: player.role.target.mifiavotes += 1 @@ -387,6 +387,7 @@ class Game: self.message(bot, s.mifia_target_killed.format(name=killed.tusername, icon=killed.role.icon, role=killed.role.name)) + killed.kill() # Attiva il onendday dei mifiosi for player in self.mifiosiingame: if isinstance(player.role, Mifioso) and player.alive: