Skip to content

Commit 81d042a

Browse files
authored
Merge pull request #10047 from sruon/head_butt_flake
[core] Fix hit distortion wrap on overkills
2 parents 22913d0 + 262c61a commit 81d042a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/map/action/action.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ auto action_result_t::recordDamage(const attack_outcome_t& outcome) -> action_re
6464
if (const auto* PTarget = outcome.target)
6565
{
6666
// Calculate damage percentage
67-
const uint8_t damageHPP = PTarget->GetMaxHP() > 0 ? static_cast<uint8_t>((outcome.damage * 100) / PTarget->GetMaxHP()) : 0;
67+
const int32_t damageHPP = PTarget->GetMaxHP() > 0 ? (outcome.damage * 100) / PTarget->GetMaxHP() : 0;
6868
auto distortion = HitDistortion::None;
6969

7070
// Values below need to be refined

0 commit comments

Comments
 (0)