Core/SAI: Rename LeavingWorld to OnDespawn & use it in SAI
Port From (https://github.com/TrinityCore/TrinityCore/commit/b0164fb2b9cc35663e337d48660d5bca1e973d99)
This commit is contained in:
@@ -53,7 +53,7 @@ namespace Scripts.Pets
|
||||
{
|
||||
public npc_pet_gen_soul_trader(Creature creature) : base(creature) { }
|
||||
|
||||
public override void LeavingWorld()
|
||||
public override void OnDespawn()
|
||||
{
|
||||
Unit owner = me.GetOwner();
|
||||
if (owner != null)
|
||||
@@ -77,7 +77,7 @@ namespace Scripts.Pets
|
||||
{
|
||||
public npc_pet_lich(Creature creature) : base(creature) { }
|
||||
|
||||
public override void LeavingWorld()
|
||||
public override void OnDespawn()
|
||||
{
|
||||
Unit owner = me.GetOwner();
|
||||
if (owner != null)
|
||||
|
||||
Reference in New Issue
Block a user