Organize code in Player.h

This commit is contained in:
ratkosrb
2018-12-02 19:19:04 +02:00
parent f9e8c3d2b5
commit 395d47d15f
90 changed files with 1948 additions and 2088 deletions
+2 -2
View File
@@ -364,7 +364,7 @@ void Player::UpdateAttackPowerAndDamage(bool ranged)
}
}
void Player::CalculateMinMaxDamage(WeaponAttackType attType, bool normalized, float& min_damage, float& max_damage, uint8 index)
void Player::CalculateMinMaxDamage(WeaponAttackType attType, bool normalized, float& min_damage, float& max_damage, uint8 index) const
{
UnitMods unitMod;
@@ -632,7 +632,7 @@ void Player::UpdateManaRegen()
{
// Mana regen from spirit
// Nostalrius - Fix mana regen (diviser par 2)
float power_regen = OCTRegenMPPerSpirit() / 2.0f;
float power_regen = GetRegenMPPerSpirit() / 2.0f;
// 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);