Skip to content

Commit

Permalink
cambio en envio de mensajes
Browse files Browse the repository at this point in the history
  • Loading branch information
ezeluduena committed Nov 11, 2023
1 parent 7956e28 commit 0ac8b2f
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 @@ -43,7 +43,7 @@ async def send_players_chagnge_event(game: Game, player_id: int, objective_playe
"player_id": player_id,
"objective_player_id": objective_player_id
}
await player_connections.send_event_to_other_players_in_game(game.name, json_msg, player_id)
await player_connections.send_event_to_all_players_in_game(game.name, json_msg, player_id)


async def send_players_exchagnge_event(game: Game, player_id: int, objective_player_id: int):
Expand All @@ -52,7 +52,7 @@ async def send_players_exchagnge_event(game: Game, player_id: int, objective_pla
"player_name": get_player_name_by_id(player_id),
"objective_player_name": get_player_name_by_id(objective_player_id)
}
await player_connections.send_event_to_other_players_in_game(game.name, json_msg, player_id)
await player_connections.send_event_to_all_players_in_game(game.name, json_msg, player_id)


async def send_resolute_card_played_event(game: Game, player_id: int, option_cards: list[int]):
Expand Down

0 comments on commit 0ac8b2f

Please sign in to comment.