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