refactor(Core/Misc): sqrt/log/exp() to std::sqrt/log/exp() (#9792)
This commit is contained in:
parent
65a1fbfd35
commit
cf65cd6baf
15 changed files with 24 additions and 24 deletions
|
|
@ -918,7 +918,7 @@ void Player::UpdateManaRegen()
|
|||
|
||||
float Intellect = GetStat(STAT_INTELLECT);
|
||||
// Mana regen from spirit and intellect
|
||||
float power_regen = sqrt(Intellect) * OCTRegenMPPerSpirit();
|
||||
float power_regen = std::sqrt(Intellect) * OCTRegenMPPerSpirit();
|
||||
// Apply PCT bonus from SPELL_AURA_MOD_POWER_REGEN_PERCENT aura on spirit base regen
|
||||
power_regen *= GetTotalAuraMultiplierByMiscValue(SPELL_AURA_MOD_POWER_REGEN_PERCENT, POWER_MANA);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue