Core/Stats: disabled armor penetration handlings and removed related functions as they are deprecated since Cataclysm

This commit is contained in:
Ovahlord committed 2019-12-08 01:04:15 +01:00
1 parent f990fbb7ab
commit 5cedd2dcc3
4 files changed
+14 -73

No files matched your search

@@ -226,7 +226,6 @@ bool Player::UpdateAllStats()
UpdateManaRegen();
UpdateExpertise(BASE_ATTACK);
UpdateExpertise(OFF_ATTACK);
RecalculateRating(CR_ARMOR_PENETRATION);
UpdateAllResistances();
return true;
@@ -673,12 +672,6 @@ void Player::UpdateSpellCritChance(uint32 school)
SetFloatValue(PLAYER_SPELL_CRIT_PERCENTAGE1 + school, crit);
}
void Player::UpdateArmorPenetration(int32 amount)
{
// Store Rating Value
SetUInt32Value(PLAYER_FIELD_COMBAT_RATING_1 + CR_ARMOR_PENETRATION, amount);
}
void Player::UpdateMeleeHitChances()
{
m_modMeleeHitChance = GetRatingBonusValue(CR_HIT_MELEE);