mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 10:05:32 +01:00
Core/GameObject: Remove summoned gobs properly from the map without effecting other cases
Ref0e8e3828f4Ref #23115 (cherry picked from commit9db64666dc) # Conflicts: # src/server/game/Entities/GameObject/GameObject.cpp
This commit is contained in:
@@ -693,17 +693,17 @@ void GameObject::Update(uint32 diff)
|
||||
if (!m_respawnDelayTime)
|
||||
return;
|
||||
|
||||
if (!m_spawnId)
|
||||
{
|
||||
m_respawnTime = 0;
|
||||
Delete();
|
||||
return;
|
||||
}
|
||||
if (!m_spawnedByDefault && m_spawnId)
|
||||
{
|
||||
m_respawnTime = 0;
|
||||
DestroyForNearbyPlayers();
|
||||
return;
|
||||
}
|
||||
|
||||
if (!m_spawnedByDefault)
|
||||
{
|
||||
m_respawnTime = 0;
|
||||
DestroyForNearbyPlayers();
|
||||
Delete();
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user