mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
[8459] Avoid mutiply apply weapon dependent armor penetration bonus for each weapon.
This commit is contained in:
parent
63e7c092f1
commit
3b40f8960a
2 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue