1
Fork 0
mirror of https://github.com/RYGhub/royal-mifia.git synced 2024-11-25 23:24:18 +00:00
This commit is contained in:
Steffo 2016-05-28 00:40:30 +02:00
parent 2286e66720
commit 0c57162072

View file

@ -385,10 +385,15 @@ class Game:
random.shuffle(killlist) random.shuffle(killlist)
killed = killlist.pop() killed = killlist.pop()
if killed.alive: if killed.alive:
if killed.protectedby is None:
killed.kill()
self.message(bot, s.mifia_target_killed.format(target=killed.tusername, self.message(bot, s.mifia_target_killed.format(target=killed.tusername,
icon=killed.role.icon, icon=killed.role.icon,
role=killed.role.name)) role=killed.role.name))
killed.kill() else:
self.message(bot, s.mifia_target_protected.format(target=killed.tusername,
icon=killed.protectedby.role.icon,
protectedby=killed.protectedby.tusername))
# Attiva il onendday dei mifiosi # Attiva il onendday dei mifiosi
for player in self.mifiosiingame: for player in self.mifiosiingame:
if isinstance(player.role, Mifioso) and player.alive: if isinstance(player.role, Mifioso) and player.alive: