From 0f90e0f31cee50a1cb549569f4c69c7b727c62d6 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 5 Dec 2016 19:33:00 +0100 Subject: [PATCH] bugfixes --- main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index da6cf52..b5c589a 100644 --- a/main.py +++ b/main.py @@ -265,8 +265,8 @@ class Disastro(Role): self.poweruses -= 1 randomrole = random.sample(rolepriority, 1)[0] self.player.message(bot, s.detective_discovery.format(target=target.tusername, - icon=randomrole.role.icon, - role=randomrole.role.name, + icon=randomrole.icon, + role=randomrole.name, left=self.poweruses)) else: self.player.message(bot, s.error_username) @@ -396,7 +396,7 @@ class Game: for currentrole in rolepriority: for player in random.sample(playersleft, self.roleconfig[currentrole.__name__]): self.playersinrole[currentrole.__name__].append(player) - player.role = currentrole(self) + player.role = currentrole(player) playersleft.remove(player) # Assegna il ruolo di Royal a tutti gli altri for player in playersleft: