mirror of
https://github.com/RYGhub/royal-mifia.git
synced 2024-11-25 15:14:18 +00:00
poi ti chiedi perchè succede roba come #12
This commit is contained in:
parent
5999c76716
commit
42ea82eb9a
1 changed files with 3 additions and 2 deletions
5
main.py
5
main.py
|
@ -315,8 +315,8 @@ class Game:
|
|||
"""Aggiorna il conteggio dei voti mifiosi di tutti i giocatori."""
|
||||
for player in self.players:
|
||||
player.mifiavotes = 0
|
||||
for player in self.players:
|
||||
if isinstance(player.role, Mifioso) and player.alive:
|
||||
for player in self.mifiosiingame:
|
||||
if player.alive:
|
||||
if player.role.target is not None:
|
||||
player.role.target.mifiavotes += 1
|
||||
|
||||
|
@ -387,6 +387,7 @@ class Game:
|
|||
self.message(bot, s.mifia_target_killed.format(name=killed.tusername,
|
||||
icon=killed.role.icon,
|
||||
role=killed.role.name))
|
||||
killed.kill()
|
||||
# Attiva il onendday dei mifiosi
|
||||
for player in self.mifiosiingame:
|
||||
if isinstance(player.role, Mifioso) and player.alive:
|
||||
|
|
Loading…
Reference in a new issue