mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 16:38:42 +01:00
Scripts: Add missing killer nullptr checks in JustDied hooks
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user