Skip to content

Commit

Permalink
fix: damage console (opentibiabr#3203)
Browse files Browse the repository at this point in the history
  • Loading branch information
murilo09 authored and vllworldbuilding committed Jan 10, 2025
1 parent 7e00144 commit 585d120
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7446,7 +7446,7 @@ bool Game::combatChangeHealth(const std::shared_ptr<Creature> &attacker, const s
}

auto targetHealth = target->getHealth();
realDamage = damage.primary.value + damage.secondary.value;
realDamage = std::min<int32_t>(targetHealth, damage.primary.value + damage.secondary.value);
if (realDamage == 0) {
return true;
} else if (realDamage >= targetHealth) {
Expand Down

0 comments on commit 585d120

Please sign in to comment.