mirror of
https://github.com/RYGhub/royal-mifia.git
synced 2024-11-22 05:44:19 +00:00
cosa
This commit is contained in:
parent
2286e66720
commit
0c57162072
1 changed files with 9 additions and 4 deletions
13
main.py
13
main.py
|
@ -385,10 +385,15 @@ class Game:
|
|||
random.shuffle(killlist)
|
||||
killed = killlist.pop()
|
||||
if killed.alive:
|
||||
self.message(bot, s.mifia_target_killed.format(target=killed.tusername,
|
||||
icon=killed.role.icon,
|
||||
role=killed.role.name))
|
||||
killed.kill()
|
||||
if killed.protectedby is None:
|
||||
killed.kill()
|
||||
self.message(bot, s.mifia_target_killed.format(target=killed.tusername,
|
||||
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
|
||||
for player in self.mifiosiingame:
|
||||
if isinstance(player.role, Mifioso) and player.alive:
|
||||
|
|
Loading…
Reference in a new issue