From db4c951d7a4492f096939cbef79c2da07d406898 Mon Sep 17 00:00:00 2001 From: ezeluduena Date: Wed, 8 Nov 2023 18:04:03 -0300 Subject: [PATCH] hotfix --- app/routers/games/action_functions.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/app/routers/games/action_functions.py b/app/routers/games/action_functions.py index 4304748..f381535 100644 --- a/app/routers/games/action_functions.py +++ b/app/routers/games/action_functions.py @@ -165,12 +165,14 @@ def process_card_exchange(player: Player, objective_player: Player, player_card: objective_player.hand.add(player_card) if (player.rol == PlayerRol.THE_THING and player_card.type == CardSubtype.CONTAGION): - objective_player.rol = PlayerRol.INFECTED - objective_player.game_last_infected = objective_player.game + if objective_player.rol != PlayerRol.INFECTED: + objective_player.rol = PlayerRol.INFECTED + objective_player.game_last_infected = objective_player.game elif (objective_player.rol == PlayerRol.THE_THING and objective_player_card.type == CardSubtype.CONTAGION): - player.rol = PlayerRol.INFECTED - player.game_last_infected = player.game + if player.rol != PlayerRol.INFECTED: + player.rol = PlayerRol.INFECTED + player.game_last_infected = player.game # enviar evento de intercambio de carta