Archived
Fix player draw update
This commit is contained in:
+9
-7
@@ -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
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user