Core/Auras: Implement SPELL_AURA_MOD_BONUS_ARMOR_PCT and rename HandleModStatBonusArmor
Port From (https://github.com/TrinityCore/TrinityCore/commit/6e9a6700d83f0ad07c7c56becfc3a62434707208)
This commit is contained in:
@@ -1362,6 +1362,7 @@ namespace Game.Entities
|
||||
|
||||
value += GetFlatModifierValue(unitMod, UnitModifierFlatType.Total); // bonus armor from auras and items
|
||||
value *= GetPctModifierValue(unitMod, UnitModifierPctType.Total);
|
||||
value *= GetTotalAuraMultiplier(AuraType.ModBonusArmorPct);
|
||||
|
||||
SetArmor((int)value, (int)(value - baseValue));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user