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:
EricksOliveira
2026-06-13 09:38:31 +00:00
committed by GitHub
parent 009ea3890b
commit 230da2a878
+2 -2
View File
@@ -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())