fix(Core/Spells): Fixed misdirection triggering from mend pet (#21526)

Co-authored-by: pavel_k <pavel_k@mail.com>
This commit is contained in:
Paul 2025-02-22 01:50:33 +03:00 committed by GitHub
parent eed4c3515d
commit 3fcccf2a2e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -887,8 +887,11 @@ class spell_hun_misdirection : public AuraScript
GetTarget()->ResetRedirectThreat();
}
bool CheckProc(ProcEventInfo& /*eventInfo*/)
bool CheckProc(ProcEventInfo& eventInfo)
{
// Do not trigger from Mend Pet
if (eventInfo.GetProcSpell() && (eventInfo.GetProcSpell()->GetSpellInfo()->SpellFamilyFlags[0] & 0x800000))
return false;
return GetTarget()->GetRedirectThreatTarget();
}