Skip to content

Commit

Permalink
hotfix en serio
Browse files Browse the repository at this point in the history
  • Loading branch information
ezeluduena committed Nov 12, 2023
1 parent 1193426 commit d2a90dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/routers/games/action_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def process_better_run_card(game: Game, player: Player, objective_player: Player


@db_session
def process_card_exchange(player: Player, objective_player: Player, player_card: Card, objective_player_card: Card):
def process_card_exchange(game : Game ,player: Player, objective_player: Player, player_card: Card, objective_player_card: Card):
if (player.rol == PlayerRol.THE_THING and player_card.subtype == CardSubtype.CONTAGION):
if objective_player.rol != PlayerRol.INFECTED:
objective_player.rol = PlayerRol.INFECTED
Expand All @@ -195,7 +195,7 @@ def process_card_exchange(player: Player, objective_player: Player, player_card:
objective_player.hand.add(player_card)

asyncio.ensure_future(send_players_exchagnge_event(
player.game, player.id, objective_player.id))
game, player.id, objective_player.id))


@db_session
Expand Down

0 comments on commit d2a90dc

Please sign in to comment.