We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 22913d0 + 262c61a commit 81d042aCopy full SHA for 81d042a
1 file changed
src/map/action/action.cpp
@@ -64,7 +64,7 @@ auto action_result_t::recordDamage(const attack_outcome_t& outcome) -> action_re
64
if (const auto* PTarget = outcome.target)
65
{
66
// Calculate damage percentage
67
- const uint8_t damageHPP = PTarget->GetMaxHP() > 0 ? static_cast<uint8_t>((outcome.damage * 100) / PTarget->GetMaxHP()) : 0;
+ const int32_t damageHPP = PTarget->GetMaxHP() > 0 ? (outcome.damage * 100) / PTarget->GetMaxHP() : 0;
68
auto distortion = HitDistortion::None;
69
70
// Values below need to be refined
0 commit comments