Skip to content

Commit

Permalink
hotfix: verificacion al jugar defensa siempre falso por comparar obje…
Browse files Browse the repository at this point in the history
…to con entero xd
  • Loading branch information
anelioalvarez committed Nov 9, 2023
1 parent 2d9a398 commit 123f117
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/routers/games/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ def verify_defense_card_can_be_played(game_name: str, defense_info: PlayDefenseI
detail='No intention to conclude in the game.'
)

if game.intention.objective_player != defense_info.player_id:
if game.intention.objective_player.id != defense_info.player_id:
raise HTTPException(
status_code=status.HTTP_400_BAD_REQUEST,
detail='Does not correspond to the objective player for the intention.'
Expand Down

0 comments on commit 123f117

Please sign in to comment.