mirror of
https://github.com/RYGhub/royal-mifia.git
synced 2025-02-16 13:24:06 +00:00
Sistemato il bug che ha fatto crashare il gioco.
This commit is contained in:
parent
5482090749
commit
1619c43bf0
1 changed files with 2 additions and 2 deletions
4
main.py
4
main.py
|
@ -114,7 +114,8 @@ class Angelo(Role):
|
|||
|
||||
def onendday(self, bot, game):
|
||||
# Resetta la protezione
|
||||
self.protecting.role.protectedby = None
|
||||
if self.protecting is not None:
|
||||
self.protecting.role.protectedby = None
|
||||
self.protecting = None
|
||||
|
||||
|
||||
|
@ -134,7 +135,6 @@ class Player:
|
|||
self.votingfor = None # Diventa un player se ha votato
|
||||
self.votes = 0 # Voti. Aggiornato da updatevotes()
|
||||
|
||||
|
||||
# Classe di ogni partita
|
||||
class Game:
|
||||
def __init__(self, groupid, adminid):
|
||||
|
|
Loading…
Add table
Reference in a new issue