Core/Objects: Add overridable function UpdateObjectVisibilityOnDestroy

Port From (https://github.com/TrinityCore/TrinityCore/commit/472384e75781ce362af9721fc16928da9eea82dd)
This commit is contained in:
hondacrx
2022-03-09 12:26:16 -05:00
parent b1de89a781
commit 510a1a0208
4 changed files with 11 additions and 9 deletions
@@ -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();