Core/Units: std::floor for rounding rage gains
This commit is contained in:
1 parent
c537a2658a
commit
206cd7d6d7
1 file changed
+1
-1
@@ -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))
|
||||
|
||||
Reference in new issue
Block a user