Skip to content

Commit

Permalink
cambios para la defensa con Aterrador
Browse files Browse the repository at this point in the history
  • Loading branch information
ishiaraen committed Nov 13, 2023
1 parent 2457970 commit 5218033
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/routers/games/games.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,9 @@ async def play_defense_card(game_name: str, defense_info: PlayDefenseInformation
"objective_player_id": intention.objective_player.id,
"action_type": intention.action_type
}
if 73<=defense_info.card_id and defense_info.card_id <= 76:
card_name = get_card_name_by_id(intention.exchange_payload["card_id"])
json_msg["card_to_exchange"] = card_name
await player_connections.send_event_to_all_players_in_game(game_name, json_msg)
defense = True
else:
Expand Down

0 comments on commit 5218033

Please sign in to comment.