Core/Units: std::floor for rounding rage gains

This commit is contained in:
Ovahlord committed 2020-04-19 23:19:59 +02:00
1 parent c537a2658a
commit 206cd7d6d7
1 file changed
+1 -1
+1 -1
View File
@@ -14055,7 +14055,7 @@ void Unit::RewardRage(uint32 baseRage, bool attacker)
else
{
// Calculate rage from health and damage taken (formular taken from SimulationCraft)
addRage = baseRage * 18.92 / GetMaxHealth();
addRage = std::floor(0.5f + (baseRage * 18.92 / GetMaxHealth()));
// Berserker Rage
if (HasAura(18499))