Core/GameObject: Delete summoned gobs and DestroyForNearbyPlayers gobs spawned with negative spawn time once the gob is deactivated
Port From (https://github.com/TrinityCore/TrinityCore/commit/62d3010e56e018ffab0d3a0548d0b8ec51ab9964)
This commit is contained in:
@@ -831,13 +831,20 @@ namespace Game.Entities
|
||||
if (m_respawnDelayTime == 0)
|
||||
return;
|
||||
|
||||
if (!m_spawnedByDefault)
|
||||
if (m_spawnId == 0)
|
||||
{
|
||||
m_respawnTime = 0;
|
||||
Delete();
|
||||
return;
|
||||
}
|
||||
|
||||
if (!m_spawnedByDefault)
|
||||
{
|
||||
m_respawnTime = 0;
|
||||
DestroyForNearbyPlayers();
|
||||
return;
|
||||
}
|
||||
|
||||
uint respawnDelay = m_respawnDelayTime;
|
||||
uint scalingMode = WorldConfig.GetUIntValue(WorldCfg.RespawnDynamicMode);
|
||||
if (scalingMode != 0)
|
||||
|
||||
Reference in New Issue
Block a user