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