Core/GameObject: Remove summoned gobs properly from the map without effecting other cases
Port From (https://github.com/TrinityCore/TrinityCore/commit/a18808212e3f0e43dcb0ba099c003e45098c5dd9)
This commit is contained in:
@@ -831,17 +831,17 @@ namespace Game.Entities
|
||||
if (m_respawnDelayTime == 0)
|
||||
return;
|
||||
|
||||
if (m_spawnId == 0)
|
||||
if (m_spawnedByDefault && m_spawnId != 0)
|
||||
{
|
||||
m_respawnTime = 0;
|
||||
Delete();
|
||||
DestroyForNearbyPlayers();
|
||||
return;
|
||||
}
|
||||
|
||||
if (!m_spawnedByDefault)
|
||||
{
|
||||
m_respawnTime = 0;
|
||||
DestroyForNearbyPlayers();
|
||||
Delete();
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user