From 4ab8d4a5ddebbb04597ed2c2d1da39d315bc08ef Mon Sep 17 00:00:00 2001 From: maximius Date: Mon, 14 Sep 2009 16:06:21 -0700 Subject: *Use 4 spaces instead of tabs in .cpp and .h files --HG-- branch : trunk --- src/game/StatSystem.cpp | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) (limited to 'src/game/StatSystem.cpp') diff --git a/src/game/StatSystem.cpp b/src/game/StatSystem.cpp index a55f0bb47c3..3fb46703f9d 100644 --- a/src/game/StatSystem.cpp +++ b/src/game/StatSystem.cpp @@ -151,7 +151,7 @@ bool Player::UpdateAllStats() UpdateAllSpellCritChances(); UpdateDefenseBonusesMod(); UpdateShieldBlockValue(); - UpdateArmorPenetration(); + UpdateArmorPenetration(); UpdateSpellDamageAndHealingBonus(); UpdateManaRegen(); UpdateExpertise(BASE_ATTACK); @@ -689,26 +689,26 @@ 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; - } - } + 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) -- cgit v1.2.3