[7824] Implement use ArmorDamageModifier bonus for armor Author: DiSlord
--HG-- branch : trunk
This commit is contained in:
@@ -6668,6 +6668,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);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user