fix(Scripts/Spells): Don't proc Misdirection from Mend Pet's heal effect. (#22293)

This commit is contained in:
Benjamin Jackson
2025-07-03 11:41:52 -04:00
committed by GitHub
parent 0628ea53bb
commit dba7f694ed

View File

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