Core/GameObject: Delete summoned gobs and DestroyForNearbyPlayers gobs spawned with negative spawn time once the gob is deactivated

This commit is contained in:
Killyana
2019-04-23 16:43:49 +02:00
parent 1df7dacd9d
commit 0e8e3828f4

View File

@@ -794,10 +794,17 @@ void GameObject::Update(uint32 diff)
if (!m_respawnDelayTime)
return;
if (!m_spawnId)
{
m_respawnTime = 0;
Delete();
return;
}
if (!m_spawnedByDefault)
{
m_respawnTime = 0;
Delete();
DestroyForNearbyPlayers();
return;
}