diff options
author | maximius <none@none> | 2009-09-14 16:50:01 -0700 |
---|---|---|
committer | maximius <none@none> | 2009-09-14 16:50:01 -0700 |
commit | 6cb428318af4aba5ebb9d9340284165ca6181065 (patch) | |
tree | 9aee2db05975f78bf96fc0bbfff47a5fa4fca112 /src/game/StatSystem.cpp | |
parent | 33f8f5ac2d2b99819ce7e0f4aad4fa0648eba35e (diff) | |
parent | 140ec674a040bdc04086472330a289c2d15ecc65 (diff) |
*Merge..
--HG--
branch : trunk
Diffstat (limited to 'src/game/StatSystem.cpp')
-rw-r--r-- | src/game/StatSystem.cpp | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/game/StatSystem.cpp b/src/game/StatSystem.cpp index a55f0bb47c3..d991a96ebe6 100644 --- a/src/game/StatSystem.cpp +++ b/src/game/StatSystem.cpp @@ -151,7 +151,6 @@ bool Player::UpdateAllStats() UpdateAllSpellCritChances(); UpdateDefenseBonusesMod(); UpdateShieldBlockValue(); - UpdateArmorPenetration(); UpdateSpellDamageAndHealingBonus(); UpdateManaRegen(); UpdateExpertise(BASE_ATTACK); @@ -687,30 +686,6 @@ void Player::UpdateExpertise(WeaponAttackType attack) } } -void Player::UpdateArmorPenetration() -{ - m_armorPenetrationPct = GetRatingBonusValue(CR_ARMOR_PENETRATION); - - AuraList const& armorAuras = GetAurasByType(SPELL_AURA_MOD_TARGET_ARMOR_PCT); - for(AuraList::const_iterator itr = armorAuras.begin(); itr != armorAuras.end(); ++itr) - { - // affects all weapons - if((*itr)->GetSpellProto()->EquippedItemClass == -1) - { - m_armorPenetrationPct += (*itr)->GetModifier()->m_amount; - continue; - } - - // dependent on weapon class - for(uint8 i = 0; i < MAX_ATTACK; ++i) - { - Item *weapon = GetWeaponForAttack(WeaponAttackType(i)); - if(weapon && weapon->IsFitToSpellRequirements((*itr)->GetSpellProto())) - m_armorPenetrationPct += (*itr)->GetModifier()->m_amount; - } - } -} - void Player::ApplyManaRegenBonus(int32 amount, bool apply) { m_baseManaRegen+= apply ? amount : -amount; |