1
Fork 0
mirror of https://github.com/RYGhub/royal-mifia.git synced 2025-02-16 13:24:06 +00:00
This commit is contained in:
Steffo 2016-05-27 15:39:17 +02:00
parent 8867868c3c
commit 2a3f9f7f99

10
main.py
View file

@ -420,14 +420,14 @@ class Game:
def endconfig(self):
"""Fine della fase di config, inizio assegnazione ruoli"""
game.phase = 'Voting'
self.phase = 'Voting'
try:
game.assignroles(bot)
self.assignroles(bot)
except IndexError:
game.message(bot, s.error_not_enough_players)
game.endgame()
self.message(bot, s.error_not_enough_players)
self.endgame()
else:
game.message(bot, s.roles_assigned_successfully)
self.message(bot, s.roles_assigned_successfully)
def endgame(self):
inprogress.remove(self)