From b097ec92812382c029b4c4a3b0bb20d315b0e7b3 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 29 Jan 2017 14:42:40 +0100 Subject: [PATCH] boh --- main.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/main.py b/main.py index 4ca2e53..28b950f 100644 --- a/main.py +++ b/main.py @@ -337,14 +337,14 @@ class Stagista(Role): def onendday(self, bot, game): if self.master is not None: - if self.master.alive: - game.message(bot, s.intern_changed_role.format(icon=self.master.role.__class__.icon, role=self.master.role.__class__.name)) - game.changerole(bot, self.player, self.master.role.__class__) - else: + if isinstance(self.master.role, Derek) and self.master.role.deathwish: game.message(bot, s.intern_chaos_summoned) self.master.alive = True - game.changerole(bot, self.master, Servitore) - game.changerole(bot, self.player, SignoreDelCaos) + game.changerole(bot, self.master, SignoreDelCaos) + game.changerole(bot, self.player, Servitore) + else: + game.message(bot, s.intern_changed_role.format(icon=self.master.role.__class__.icon, role=self.master.role.__class__.name)) + game.changerole(bot, self.player, self.master.role.__class__) class SignoreDelCaos(Role):