1
Fork 0
mirror of https://github.com/RYGhub/royal-mifia.git synced 2024-11-22 13:54:19 +00:00
This commit is contained in:
Steffo 2016-05-03 21:49:17 +02:00
parent e55590b5d4
commit 6fddcf6f89

View file

@ -188,7 +188,7 @@ class Game:
selected.role = Investigatore() selected.role = Investigatore()
investigatore -= 1 investigatore -= 1
# Seleziona angelo # Seleziona angelo
while investigatore > 0: while angelo > 0:
try: try:
selected = playersleft.pop() selected = playersleft.pop()
except IndexError: except IndexError:
@ -255,7 +255,7 @@ class Game:
for player in self.players: for player in self.players:
if player.alive and isinstance(player.role, Mifioso): if player.alive and isinstance(player.role, Mifioso):
mifiosi += 1 mifiosi += 1
elif player.alive and (isinstance(player.role, Royal) or isinstance(player.role, Investigatore)): elif player.alive and player.role.team == 'Good':
royal += 1 royal += 1
if mifiosi >= royal: if mifiosi >= royal:
self.message(bot, "I Mifiosi rimasti sono più dei Royal.\n" self.message(bot, "I Mifiosi rimasti sono più dei Royal.\n"