1
Fork 0
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:
Steffo 2016-05-27 13:44:51 +02:00
parent 5999c76716
commit 42ea82eb9a

View file

@ -315,8 +315,8 @@ class Game:
"""Aggiorna il conteggio dei voti mifiosi di tutti i giocatori.""" """Aggiorna il conteggio dei voti mifiosi di tutti i giocatori."""
for player in self.players: for player in self.players:
player.mifiavotes = 0 player.mifiavotes = 0
for player in self.players: for player in self.mifiosiingame:
if isinstance(player.role, Mifioso) and player.alive: if player.alive:
if player.role.target is not None: if player.role.target is not None:
player.role.target.mifiavotes += 1 player.role.target.mifiavotes += 1
@ -387,6 +387,7 @@ class Game:
self.message(bot, s.mifia_target_killed.format(name=killed.tusername, self.message(bot, s.mifia_target_killed.format(name=killed.tusername,
icon=killed.role.icon, icon=killed.role.icon,
role=killed.role.name)) role=killed.role.name))
killed.kill()
# 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: