Skip to content

Commit

Permalink
hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
ezeluduena committed Nov 8, 2023
1 parent ebce152 commit db4c951
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions app/routers/games/action_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit db4c951

Please sign in to comment.