1
Fork 0
mirror of https://github.com/RYGhub/royal-mifia.git synced 2024-11-22 05:44:19 +00:00

Update main.py

This commit is contained in:
Steffo 2016-05-27 11:16:02 +02:00
parent 3b61d98473
commit 8de9bff432

View file

@ -361,7 +361,7 @@ class Game:
# Mifiosi
if self.votingmifia:
# Trova il più votato dai mifiosi e uccidilo
killlist = mostvotedmifia()
killlist = self.mostvotedmifia()
if len(killlist) > 0:
# In caso di pareggio, elimina un giocatore casuale.
random.seed()
@ -369,6 +369,7 @@ class Game:
killed = killlist.pop()
if killed.alive:
self.message(bot, s.mifia_target_killed.format(name=killed.tusername, icon=killed.role.icon, role=killed.role.name))
# Attiva il onendday dei mifiosi
for player in self.mifiosiingame:
if isinstance(player.role, Mifioso) and player.alive:
player.role.onendday(bot, self)