1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00

Trovato l'errore!

This commit is contained in:
Steffo 2016-04-20 17:36:47 +02:00
parent 21cd66dc3b
commit c0a6ddd157

View file

@ -238,6 +238,8 @@ def loadgame(chatid) -> Game:
lp.alive = bool(loaded[player]['alive']) lp.alive = bool(loaded[player]['alive'])
lp.username = player lp.username = player
lp.role = int(loaded[player]['role']) lp.role = int(loaded[player]['role'])
if lp.role == 1 or lp.role == 2:
lp.special = True
lp.telegramid = int(loaded[player]['telegramid']) lp.telegramid = int(loaded[player]['telegramid'])
l.players.append(lp) l.players.append(lp)
l.groupid = int(loaded['General']['groupid']) l.groupid = int(loaded['General']['groupid'])