diff --git a/backend/app/services/game_manager.py b/backend/app/services/game_manager.py index 407f3d1..4ab487e 100644 --- a/backend/app/services/game_manager.py +++ b/backend/app/services/game_manager.py @@ -136,6 +136,12 @@ class GameManager: q["answered"] = True break + # Advance stealing team's player index (they had their turn) + team_players = room["teams"][stealing_team] + room["current_player_index"][stealing_team] = ( + room["current_player_index"][stealing_team] + 1 + ) % len(team_players) + # Original team chooses next room["current_team"] = "B" if stealing_team == "A" else "A" room["current_question"] = None @@ -192,8 +198,15 @@ class GameManager: q["answered"] = True break + # The team that passed on steal - advance their player index + passing_team = room["current_team"] + team_players = room["teams"][passing_team] + room["current_player_index"][passing_team] = ( + room["current_player_index"][passing_team] + 1 + ) % len(team_players) + # Switch back to original team for next selection - room["current_team"] = "B" if room["current_team"] == "A" else "A" + room["current_team"] = "B" if passing_team == "A" else "A" room["current_question"] = None room["can_steal"] = False