Core/GameObject: Remove summoned game objects from the map after calling SetSpawnedByDefault(false)
Port From (https://github.com/TrinityCore/TrinityCore/commit/a99a60bcf36614c038efd33a1bd9e057935b3aaf)
This commit is contained in:
@@ -831,11 +831,10 @@ namespace Game.Entities
|
||||
if (m_respawnDelayTime == 0)
|
||||
return;
|
||||
|
||||
// ToDo: Decide if we should properly despawn these. Maybe they expect to be able to manually respawn from script?
|
||||
if (!m_spawnedByDefault)
|
||||
{
|
||||
m_respawnTime = 0;
|
||||
DestroyForNearbyPlayers(); // old UpdateObjectVisibility()
|
||||
Delete();
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user