[8459] Avoid mutiply apply weapon dependent armor penetration bonus for each weapon.

This commit is contained in:
VladimirMangos 2009-09-04 02:25:09 +04:00
parent 63e7c092f1
commit 3b40f8960a
2 changed files with 4 additions and 1 deletions

View file

@ -668,7 +668,10 @@ void Player::UpdateArmorPenetration()
{
Item *weapon = GetWeaponForAttack(WeaponAttackType(i));
if(weapon && weapon->IsFitToSpellRequirements((*itr)->GetSpellProto()))
{
m_armorPenetrationPct += (*itr)->GetModifier()->m_amount;
break;
}
}
}
}