mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 08:55:32 +01:00
Core/SAI: Rename LeavingWorld to OnDespawn & use it in SAI (#28059)
This commit is contained in:
@@ -123,7 +123,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);
|
||||
@@ -149,7 +149,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