From 8de9bff43230bfdb62bf6ba868d71f9180e59706 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 27 May 2016 11:16:02 +0200 Subject: [PATCH] Update main.py --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 423f06f..d8bf7c5 100644 --- a/main.py +++ b/main.py @@ -361,7 +361,7 @@ class Game: # Mifiosi if self.votingmifia: # Trova il piĆ¹ votato dai mifiosi e uccidilo - killlist = mostvotedmifia() + killlist = self.mostvotedmifia() if len(killlist) > 0: # In caso di pareggio, elimina un giocatore casuale. random.seed() @@ -369,6 +369,7 @@ class Game: killed = killlist.pop() if killed.alive: self.message(bot, s.mifia_target_killed.format(name=killed.tusername, icon=killed.role.icon, role=killed.role.name)) + # Attiva il onendday dei mifiosi for player in self.mifiosiingame: if isinstance(player.role, Mifioso) and player.alive: player.role.onendday(bot, self)