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())
|
if (obj->IsInWorld())
|
||||||
{
|
{
|
||||||
ASSERT(obj->IsInGrid());
|
ASSERT(obj->IsInGrid());
|
||||||
obj->UpdateObjectVisibilityOnCreate();
|
obj->UpdateObjectVisibility(true);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -344,7 +344,7 @@ bool Map::AddToMap(T* obj, bool checkTransport)
|
|||||||
|
|
||||||
//something, such as vehicle, needs to be update immediately
|
//something, such as vehicle, needs to be update immediately
|
||||||
//also, trigger needs to cast spell, if not update, cannot see visual
|
//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.
|
// Post-visibility so accessories seat after the vehicle's create packet reaches clients.
|
||||||
if (obj->IsCreature())
|
if (obj->IsCreature())
|
||||||
|
|||||||
Reference in New Issue
Block a user