Skip to content

Commit

Permalink
fix: reacomodo de turno
Browse files Browse the repository at this point in the history
  • Loading branch information
ezeluduena committed Nov 11, 2023
1 parent 930f16c commit 0e00476
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/routers/games/action_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 0e00476

Please sign in to comment.