Core/Unit: fix SPELL_AURA_MOD_DAMAGE_DONE damage calculation on non-melee schools
Port From (https://github.com/TrinityCore/TrinityCore/commit/8889b6f54c803805fe28ca9e015efe064759262a)
This commit is contained in:
@@ -3266,7 +3266,14 @@ namespace Game.Entities
|
||||
_ => throw new NotImplementedException(),
|
||||
};
|
||||
|
||||
float amount = GetTotalAuraModifier(AuraType.ModDamageDone, auratype => CheckAttackFitToAuraRequirement(attackType, auratype));
|
||||
float amount = GetTotalAuraModifier(AuraType.ModDamageDone, aurEff =>
|
||||
{
|
||||
if ((aurEff.GetMiscValue() & (int)SpellSchoolMask.Normal) == 0)
|
||||
return false;
|
||||
|
||||
return CheckAttackFitToAuraRequirement(attackType, aurEff);
|
||||
});
|
||||
|
||||
SetStatFlatModifier(unitMod, UnitModifierFlatType.Total, amount);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user