diff options
author | megamage <none@none> | 2009-08-10 15:32:08 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-08-10 15:32:08 -0500 |
commit | feba13e6504bc8c1523b1101d3131d3afb219577 (patch) | |
tree | 4e5519dc08c75b0c7497ff9c01bc61361ad8adc8 /src/game/StatSystem.cpp | |
parent | 0ed719c558e90fe2fb9ec4c2afb2fdce758e0654 (diff) |
*change SPELL_AURA_MOD_ARMOR_PENETRATION_PCT to reduce armor on target and add cap amount of armor reduced by armor penetration rating By thenecromancer
--HG--
branch : trunk
Diffstat (limited to 'src/game/StatSystem.cpp')
-rw-r--r-- | src/game/StatSystem.cpp | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/game/StatSystem.cpp b/src/game/StatSystem.cpp index 36d88e065a6..d6a0d737d7b 100644 --- a/src/game/StatSystem.cpp +++ b/src/game/StatSystem.cpp @@ -630,29 +630,6 @@ void Player::UpdateSpellCritChance(uint32 school) void Player::UpdateArmorPenetration(int32 amount) { - AuraEffectList const& expAuras = GetAurasByType(SPELL_AURA_MOD_ARMOR_PENETRATION_PCT); - for(AuraEffectList::const_iterator itr = expAuras.begin(); itr != expAuras.end(); ++itr) - { - // item neutral spell - if((*itr)->GetSpellProto()->EquippedItemClass == -1) - { - amount *= ((*itr)->GetAmount() + 100.0f) / 100.0f; - continue; - } - - // item dependent spell - check curent weapons - for(int i = 0; i < MAX_ATTACK; ++i) - { - Item *weapon = GetWeaponForAttack(WeaponAttackType(i)); - - if(weapon && weapon->IsFitToSpellRequirements((*itr)->GetSpellProto())) - { - amount *= ((*itr)->GetAmount() + 100.0f) / 100.0f; - break; - } - } - } - // Store Rating Value SetUInt32Value(PLAYER_FIELD_COMBAT_RATING_1 + CR_ARMOR_PENETRATION, amount); } |