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

Co-authored-by: pavel_k <[email protected]>
This commit is contained in:
Paul
2025-02-21 19:50:33 -03:00
committed by GitHub
co-authored by pavel_k
parent eed4c3515d
commit 3fcccf2a2e
+4 -1
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();
}