mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +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));
|
Item *weapon = GetWeaponForAttack(WeaponAttackType(i));
|
||||||
if(weapon && weapon->IsFitToSpellRequirements((*itr)->GetSpellProto()))
|
if(weapon && weapon->IsFitToSpellRequirements((*itr)->GetSpellProto()))
|
||||||
|
{
|
||||||
m_armorPenetrationPct += (*itr)->GetModifier()->m_amount;
|
m_armorPenetrationPct += (*itr)->GetModifier()->m_amount;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "8458"
|
#define REVISION_NR "8459"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue