Skip to content

Commit

Permalink
remove spell damage duplication eureka
Browse files Browse the repository at this point in the history
  • Loading branch information
1kuceraj committed Sep 23, 2024
1 parent fb265fe commit 8a337c1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions combat_npc.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,6 @@ def handle_player_turn(user_data: Dict, user: str, enemy: Any, round_data: Dict,
else:
damage_dealt = handle_weapon_attack(user_data, enemy, round_data, max_total_hp)

enemy.hp = max(0, enemy.hp - damage_dealt) # Update enemy HP here

round_data["actions"][-1].update({
"final_player_hp": user_data["hp"],
"final_enemy_hp": enemy.hp,
Expand Down

0 comments on commit 8a337c1

Please sign in to comment.