mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 02:25:38 +01:00
Merge branch '4.3.4' into '4.3.4'
Fixed gameobjects not always despawning after use/delete See merge request !41
This commit is contained in:
@@ -2764,9 +2764,7 @@ void WorldObject::DestroyForNearbyPlayers()
|
||||
if (isType(TYPEMASK_UNIT) && ToUnit()->GetCharmerGUID() == player->GetGUID()) /// @todo this is for puppet
|
||||
continue;
|
||||
|
||||
if (GetTypeId() == TYPEID_UNIT)
|
||||
DestroyForPlayer(player); // at remove from world (destroy) show kill animation
|
||||
|
||||
DestroyForPlayer(player); // at remove from world (destroy) show kill animation
|
||||
player->m_clientGUIDs.erase(GetGUID());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user