Archived
Fix crash when game ends
This commit is contained in:
+2
-2
@@ -30,7 +30,7 @@ class Game(Serializable):
|
|||||||
started: bool
|
started: bool
|
||||||
ended: bool
|
ended: bool
|
||||||
|
|
||||||
default_health = 50
|
default_health = 1
|
||||||
|
|
||||||
current_turn: Team | None
|
current_turn: Team | None
|
||||||
|
|
||||||
@@ -188,7 +188,7 @@ class Game(Serializable):
|
|||||||
)
|
)
|
||||||
|
|
||||||
def end_game(self):
|
def end_game(self):
|
||||||
self.lobby.remove(self)
|
self.lobby.games.remove(self)
|
||||||
self.ended = True
|
self.ended = True
|
||||||
|
|
||||||
def kill_team(self, team: Team):
|
def kill_team(self, team: Team):
|
||||||
|
|||||||
Reference in New Issue
Block a user