Fix player draw update

This commit is contained in:
2024-04-20 00:39:03 +02:00
parent aee17c8a54
commit fe0d45f036
2 changed files with 10 additions and 8 deletions
+9 -7
View File
@@ -184,13 +184,15 @@ class Game(Serializable):
notifications = [] notifications = []
# Send cards in hand to teams # Send cards in hand to teams
for t in self.teams: for p in self.players:
current_team = [p for p in self.players if p.team == t] notifications.append(p.team.notify_controller("update", p.serialize_team()))
for p in current_team: # for t in self.teams:
for o in current_team: # current_team = [p for p in self.players if p.team == t]
notifications.append( # for p in current_team:
p.notify_controller("update", o.serialize_team()) # for o in current_team:
) # notifications.append(
# p.notify_controller("update", o.serialize_team())
# )
# Send cards in hand to all others # Send cards in hand to all others
for p in self.players: for p in self.players:
+1 -1
View File
@@ -82,4 +82,4 @@ class Player(Serializable):
amount = amount - 1 amount = amount - 1
finally: finally:
pass pass
# await self.team.notify_controller("update", self.serialize_team()) # await self.team.notify_controller("update", self.serialize_team())