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 = []
# Send cards in hand to teams
for t in self.teams:
current_team = [p for p in self.players if p.team == t]
for p in current_team:
for o in current_team:
notifications.append(
p.notify_controller("update", o.serialize_team())
)
for p in self.players:
notifications.append(p.team.notify_controller("update", p.serialize_team()))
# for t in self.teams:
# current_team = [p for p in self.players if p.team == t]
# for p in current_team:
# for o in current_team:
# notifications.append(
# p.notify_controller("update", o.serialize_team())
# )
# Send cards in hand to all others
for p in self.players:
+1 -1
View File
@@ -82,4 +82,4 @@ class Player(Serializable):
amount = amount - 1
finally:
pass
# await self.team.notify_controller("update", self.serialize_team())
# await self.team.notify_controller("update", self.serialize_team())