mirror of
https://github.com/RYGhub/royal-mifia.git
synced 2024-11-22 13:54:19 +00:00
cosa
This commit is contained in:
parent
2286e66720
commit
0c57162072
1 changed files with 9 additions and 4 deletions
7
main.py
7
main.py
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue