From 262c61af66fb95c62995ab7ede2062be587c3a8c Mon Sep 17 00:00:00 2001 From: sruon Date: Fri, 15 May 2026 20:45:29 -0600 Subject: [PATCH] Fix hit distortion wrap on overkills --- src/map/action/action.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/map/action/action.cpp b/src/map/action/action.cpp index 48beffcb132..2b30c886064 100644 --- a/src/map/action/action.cpp +++ b/src/map/action/action.cpp @@ -64,7 +64,7 @@ auto action_result_t::recordDamage(const attack_outcome_t& outcome) -> action_re if (const auto* PTarget = outcome.target) { // Calculate damage percentage - const uint8_t damageHPP = PTarget->GetMaxHP() > 0 ? static_cast((outcome.damage * 100) / PTarget->GetMaxHP()) : 0; + const int32_t damageHPP = PTarget->GetMaxHP() > 0 ? (outcome.damage * 100) / PTarget->GetMaxHP() : 0; auto distortion = HitDistortion::None; // Values below need to be refined