fix player hand -> board start turtn

This commit is contained in:
2024-05-03 17:00:57 +02:00
parent 098dc4977f
commit 5a90c9da6f
+1 -1
View File
@@ -165,7 +165,7 @@ class Game(Serializable):
async def end_turn(self): async def end_turn(self):
team_index = self.teams.index(self.current_turn) team_index = self.teams.index(self.current_turn)
self.current_turn = self.teams[(team_index + 1) % len(self.teams)] self.current_turn = self.teams[(team_index + 1) % len(self.teams)]
for p in self.players: for p in [p for p in self.players if p.team == self.current_turn]:
await p.start_turn() await p.start_turn()
await self.notify_controller("update", self.serialize_guest()) await self.notify_controller("update", self.serialize_guest())