chore(Scripts/Misc): Cleanup some more JustDied hooks (#9768)

This commit is contained in:
Kitzunu
2021-12-31 16:00:40 +01:00
committed by GitHub
parent 0556f0b3d5
commit 69683a3472
22 changed files with 34 additions and 31 deletions

View File

@@ -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);
}
};