From 0e00476623910133227b8a58e876a5d7d07be281 Mon Sep 17 00:00:00 2001 From: ezeluduena Date: Sat, 11 Nov 2023 17:29:55 -0300 Subject: [PATCH] fix: reacomodo de turno --- app/routers/games/action_functions.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/routers/games/action_functions.py b/app/routers/games/action_functions.py index f906cb9..f1d0220 100644 --- a/app/routers/games/action_functions.py +++ b/app/routers/games/action_functions.py @@ -88,6 +88,10 @@ def process_flamethrower_card(game: Game, player: Player, objective_player: Play p.position -= 1 objective_player.position = -1 + # Reacomodo el turno + if game.turn != 0 and objective_player.position < player.position: + game.turn = game.turn - 1 + asyncio.ensure_future(send_players_eliminated_event(game=game, killer_id=player.id, killer_name=player.name,