diff --git a/src/game/Entities/StatSystem.cpp b/src/game/Entities/StatSystem.cpp index 26ce3f53ee6..262356321d7 100644 --- a/src/game/Entities/StatSystem.cpp +++ b/src/game/Entities/StatSystem.cpp @@ -256,7 +256,7 @@ void Unit::UpdateMaxPower(Powers power) value += GetModifierValue(unitMod, TOTAL_VALUE) + bonusPower; value *= GetModifierValue(unitMod, TOTAL_PCT); - SetMaxPower(power, uint32(value)); + SetMaxPower(power, uint32(std::ceilf(value))); } void Player::ApplyFeralAPBonus(int32 amount, bool apply) @@ -1130,7 +1130,7 @@ void Pet::UpdateMaxPower(Powers power) value += GetModifierValue(unitMod, TOTAL_VALUE) + std::max((addValue - 20) * 15 + 20, 0.f); value *= GetModifierValue(unitMod, TOTAL_PCT); - SetMaxPower(power, uint32(value)); + SetMaxPower(power, uint32(std::ceilf(value))); } void Pet::UpdateAttackPowerAndDamage(bool ranged)