Core/Spells: fixed a potential crash in Will of the Necropolis aurascript

This commit is contained in:
Ovahlord
2019-08-18 21:13:37 +02:00
parent cdc0e22c33
commit 1b0e6ca130

View File

@@ -1150,7 +1150,7 @@ class spell_dk_will_of_the_necropolis : public AuraScript
bool CheckProc(ProcEventInfo& eventInfo)
{
return GetTarget()->HealthBelowPctDamaged(30, eventInfo.GetDamageInfo()->GetDamage());
return eventInfo.GetDamageInfo() && GetTarget()->HealthBelowPctDamaged(30, eventInfo.GetDamageInfo()->GetDamage());
}
void HandleProc(AuraEffect const* aurEff, ProcEventInfo& /*eventInfo*/)