fix(Core): Crashfix. (#9157)

This commit is contained in:
UltraNix
2021-11-12 22:05:38 +01:00
committed by GitHub
parent 10841cf9e4
commit 4046b55c57

View File

@@ -792,7 +792,10 @@ class spell_pri_vampiric_touch : public AuraScript
void HandleProc(AuraEffect const* aurEff, ProcEventInfo& eventInfo)
{
PreventDefaultAction();
eventInfo.GetActor()->CastSpell(eventInfo.GetActor(), 57669, true, nullptr, aurEff);
if (Unit* actor = eventInfo.GetActor())
{
actor->CastSpell(actor, 57669, true, nullptr, aurEff);
}
}
void Register() override