Misc fixes
This commit is contained in:
@@ -3026,6 +3026,7 @@ namespace Game.Entities
|
||||
{
|
||||
m_shouldReacquireTarget = false;
|
||||
m_suppressedTarget = ObjectGuid.Empty;
|
||||
SetTarget(ObjectGuid.Empty);
|
||||
m_suppressedOrientation = 0.0f;
|
||||
}
|
||||
|
||||
|
||||
@@ -68,6 +68,9 @@ namespace Game.Entities
|
||||
// Register the pet for guid lookup
|
||||
base.AddToWorld();
|
||||
InitializeAI();
|
||||
ZoneScript zoneScript = GetZoneScript() != null ? GetZoneScript() : GetInstanceScript();
|
||||
if (zoneScript != null)
|
||||
zoneScript.OnCreatureCreate(this);
|
||||
}
|
||||
|
||||
// Prevent stuck pets when zoning. Pets default to "follow" when added to world
|
||||
|
||||
Reference in New Issue
Block a user