[7824] Implement use ArmorDamageModifier bonus for armor

Signed-off-by: DiSlord <dislord@nomail.com>
This commit is contained in:
DiSlord 2009-05-14 12:06:09 +04:00
parent 640d46ce1f
commit 1f3210b0ca
2 changed files with 4 additions and 1 deletions

View file

@ -6523,6 +6523,9 @@ void Player::_ApplyItemBonuses(ItemPrototype const *proto, uint8 slot, bool appl
if (uint32 ssvarmor = ssv->getArmorMod(proto->ScalingStatValue)) if (uint32 ssvarmor = ssv->getArmorMod(proto->ScalingStatValue))
armor = ssvarmor; armor = ssvarmor;
} }
// Add armor bonus from ArmorDamageModifier if > 0
if (proto->ArmorDamageModifier > 0)
armor+=proto->ArmorDamageModifier;
if (armor) if (armor)
HandleStatModifier(UNIT_MOD_ARMOR, BASE_VALUE, float(armor), apply); HandleStatModifier(UNIT_MOD_ARMOR, BASE_VALUE, float(armor), apply);

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "7823" #define REVISION_NR "7824"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__