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

13
main.py
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:
self.message(bot, s.mifia_target_killed.format(target=killed.tusername, if killed.protectedby is None:
icon=killed.role.icon, killed.kill()
role=killed.role.name)) self.message(bot, s.mifia_target_killed.format(target=killed.tusername,
killed.kill() icon=killed.role.icon,
role=killed.role.name))
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: