mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-22 21:26:23 +00:00
chore(Scripts/Misc): Cleanup some more JustDied hooks (#9768)
This commit is contained in:
@@ -214,7 +214,7 @@ public:
|
||||
trigger_deathAI(Creature* creature) : NullCreatureAI(creature) { }
|
||||
void JustDied(Unit* killer) override
|
||||
{
|
||||
if (me->m_spells[0])
|
||||
if (killer && me->m_spells[0])
|
||||
me->CastSpell(killer, me->m_spells[0], true);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user