fix(Scripts/Spells): fix a crash with Scent of Blood talent (#10078)

This commit is contained in:
Skjalf
2022-01-15 21:10:06 -03:00
committed by GitHub
parent 7f05e20994
commit 96cf1e60e9

View File

@@ -693,7 +693,7 @@ class spell_dk_scent_of_blood_trigger : public AuraScript
bool CheckProc(ProcEventInfo& eventInfo)
{
return (eventInfo.GetHitMask() & (PROC_EX_DODGE | PROC_EX_PARRY)) || eventInfo.GetDamageInfo()->GetDamage();
return (eventInfo.GetHitMask() & (PROC_EX_DODGE | PROC_EX_PARRY)) || (eventInfo.GetDamageInfo() && eventInfo.GetDamageInfo()->GetDamage());
}
void Register() override