Skip to content

Commit

Permalink
Scripts: Add missing killer nullptr checks in JustDied hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
Shauren committed Dec 21, 2019
1 parent 046e98b commit 175eba7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ class npc_medivh_bm : public CreatureScript

void JustDied(Unit* killer) override
{
if (killer->GetEntry() == me->GetEntry())
if (killer && killer->GetEntry() == me->GetEntry())
return;

Talk(SAY_DEATH);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 175eba7

Please sign in to comment.