mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 09:17:36 +01:00
Core/SAI: Rename LeavingWorld to OnDespawn & use it in SAI (#28059)
(cherry picked from commit b9450bcdd0)
This commit is contained in:
@@ -124,7 +124,7 @@ struct npc_pet_gen_soul_trader : public ScriptedAI
|
||||
{
|
||||
npc_pet_gen_soul_trader(Creature* creature) : ScriptedAI(creature) { }
|
||||
|
||||
void LeavingWorld() override
|
||||
void OnDespawn() override
|
||||
{
|
||||
if (Unit* owner = me->GetOwner())
|
||||
DoCast(owner, SPELL_ETHEREAL_PET_REMOVE_AURA);
|
||||
@@ -150,7 +150,7 @@ struct npc_pet_lich : public ScriptedAI
|
||||
{
|
||||
npc_pet_lich(Creature* creature) : ScriptedAI(creature) { }
|
||||
|
||||
void LeavingWorld() override
|
||||
void OnDespawn() override
|
||||
{
|
||||
if (Unit* owner = me->GetOwner())
|
||||
DoCast(owner, SPELL_LICH_REMOVE_AURA);
|
||||
|
||||
Reference in New Issue
Block a user