mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-03 23:57:10 +01:00
Scripts: Add missing killer nullptr checks in JustDied hooks
This commit is contained in:
@@ -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