Scripts: Add missing killer nullptr checks in JustDied hooks

This commit is contained in:
Shauren
2019-12-21 13:30:59 +01:00
parent 046e98bc5d
commit 175eba74ae
2 changed files with 2 additions and 2 deletions

View File

@@ -155,7 +155,7 @@ public:
void JustDied(Unit* killer) override
{
if (killer->GetEntry() == me->GetEntry())
if (killer && killer->GetEntry() == me->GetEntry())
return;
Talk(SAY_DEATH);

View File

@@ -987,7 +987,7 @@ class npc_gluttonous_abomination : public CreatureScript
void JustDied(Unit* killer) override
{
if (killer->GetEntry() == NPC_VALITHRIA_DREAMWALKER)
if (killer && killer->GetEntry() == NPC_VALITHRIA_DREAMWALKER)
return;
DoCastSelf(SPELL_ROT_WORM_SPAWNER, true);