Core/Objects: Add overridable function UpdateObjectVisibilityOnDestroy
Port From (https://github.com/TrinityCore/TrinityCore/commit/472384e75781ce362af9721fc16928da9eea82dd)
This commit is contained in:
@@ -865,7 +865,7 @@ namespace Game.Entities
|
||||
m_respawnTime = 0;
|
||||
|
||||
if (m_spawnId != 0)
|
||||
DestroyForNearbyPlayers();
|
||||
UpdateObjectVisibilityOnDestroy();
|
||||
else
|
||||
Delete();
|
||||
|
||||
@@ -883,7 +883,7 @@ namespace Game.Entities
|
||||
SaveRespawnTime();
|
||||
|
||||
if (m_respawnCompatibilityMode)
|
||||
DestroyForNearbyPlayers();
|
||||
UpdateObjectVisibilityOnDestroy();
|
||||
else
|
||||
AddObjectToRemoveList();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user