Core/Spells: Unit::MeleeDamageBonusTaken will now use the SchoolMask of melee attack spells when spellInfo is provided

ref https://github.com/TrinityCore/TrinityCore/issues/27523
This commit is contained in:
Ovahlord committed 2022-01-05 13:11:58 +01:00
1 parent 6250b74969
commit fa378dc870
1 file changed
+1 -1
+1 -1
View File
@@ -8040,7 +8040,7 @@ uint32 Unit::MeleeDamageBonusTaken(Unit* attacker, uint32 pdamage, WeaponAttackT
int32 TakenFlatBenefit = 0;
uint32 meleeDamageSchoolMask = attacker->GetMeleeDamageSchoolMask();
uint32 meleeDamageSchoolMask = spellProto ? spellProto->SchoolMask : attacker->GetMeleeDamageSchoolMask();
// ..taken
TakenFlatBenefit += GetTotalAuraModifier(SPELL_AURA_MOD_DAMAGE_TAKEN, [meleeDamageSchoolMask, spellProto](AuraEffect const* aurEff)