Skip to content

Commit

Permalink
fix: al jugar carta defensa no se agregaba al mazo de descarte
Browse files Browse the repository at this point in the history
  • Loading branch information
anelioalvarez committed Nov 8, 2023
1 parent 5dac89a commit e3cf59c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/routers/games/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -657,6 +657,7 @@ def play_defense_card(game_name: str, defense_info: PlayDefenseInformation):
intention: Intention = game.intention

intention.objective_player.hand.remove(card)
game.discard_deck.add(card)

# Draw card until a card of type StayAway is obtained
while (top_card := draw_card_by_drawing_order(game)).type != CardType.STAY_AWAY:
Expand Down

0 comments on commit e3cf59c

Please sign in to comment.