mirror of
https://gitcode.com/GitHub_Trending/az/azerothcore-wotlk.git
synced 2026-07-10 19:03:11 +00:00
fix(Core/Maps): prevent newly spawned summons from aggroing nearby pets/totems on spawn (#24109)
Co-authored-by: Ludwig <sudlud@users.noreply.github.com> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -307,7 +307,7 @@ bool Map::AddToMap(T* obj, bool checkTransport)
|
||||
if (obj->IsInWorld())
|
||||
{
|
||||
ASSERT(obj->IsInGrid());
|
||||
obj->UpdateObjectVisibilityOnCreate();
|
||||
obj->UpdateObjectVisibility(true);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -344,7 +344,7 @@ bool Map::AddToMap(T* obj, bool checkTransport)
|
||||
|
||||
//something, such as vehicle, needs to be update immediately
|
||||
//also, trigger needs to cast spell, if not update, cannot see visual
|
||||
obj->UpdateObjectVisibility(true);
|
||||
obj->UpdateObjectVisibilityOnCreate();
|
||||
|
||||
// Post-visibility so accessories seat after the vehicle's create packet reaches clients.
|
||||
if (obj->IsCreature())
|
||||
|
||||
Reference in New Issue
Block a user