Skip to content

Commit

Permalink
Stats: Fix hp rounding issue using confirmed ceil
Browse files Browse the repository at this point in the history
  • Loading branch information
killerwife committed Jan 3, 2025
1 parent 85ee8f1 commit c6eb72d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/Entities/StatSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ void Unit::UpdateMaxHealth()
value += GetModifierValue(unitMod, TOTAL_VALUE) + GetHealthBonusFromStamina();
value *= GetModifierValue(unitMod, TOTAL_PCT);

SetMaxHealth((uint32)std::max(value, 1.f));
SetMaxHealth(uint32(std::ceil(std::max(value, 1.f))));
}

void Unit::UpdateMaxPower(Powers power)
Expand Down

0 comments on commit c6eb72d

Please sign in to comment.