Core/Objects: Initialize position data and zone/instance script for all worldobject types (except player)
Port From (https://github.com/TrinityCore/TrinityCore/commit/fddd6cdf3fb342b98d4878d23874f60498d7545a)
This commit is contained in:
@@ -168,6 +168,9 @@ namespace Game.Entities
|
|||||||
m_movementInfo.transport.guid = target.GetGUID();
|
m_movementInfo.transport.guid = target.GetGUID();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
UpdatePositionData();
|
||||||
|
SetZoneScript();
|
||||||
|
|
||||||
UpdateShape();
|
UpdateShape();
|
||||||
|
|
||||||
uint timeToTarget = GetCreateProperties().TimeToTarget != 0 ? GetCreateProperties().TimeToTarget : m_areaTriggerData.Duration;
|
uint timeToTarget = GetCreateProperties().TimeToTarget != 0 ? GetCreateProperties().TimeToTarget : m_areaTriggerData.Duration;
|
||||||
|
|||||||
@@ -119,6 +119,9 @@ namespace Game.Entities
|
|||||||
_Create(ObjectGuid.Create(HighGuid.Conversation, GetMapId(), conversationEntry, lowGuid));
|
_Create(ObjectGuid.Create(HighGuid.Conversation, GetMapId(), conversationEntry, lowGuid));
|
||||||
PhasingHandler.InheritPhaseShift(this, creator);
|
PhasingHandler.InheritPhaseShift(this, creator);
|
||||||
|
|
||||||
|
UpdatePositionData();
|
||||||
|
SetZoneScript();
|
||||||
|
|
||||||
SetEntry(conversationEntry);
|
SetEntry(conversationEntry);
|
||||||
SetObjectScale(1.0f);
|
SetObjectScale(1.0f);
|
||||||
|
|
||||||
|
|||||||
@@ -89,6 +89,9 @@ namespace Game.Entities
|
|||||||
|
|
||||||
PhasingHandler.InheritPhaseShift(this, owner);
|
PhasingHandler.InheritPhaseShift(this, owner);
|
||||||
|
|
||||||
|
UpdatePositionData();
|
||||||
|
SetZoneScript();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -91,6 +91,9 @@ namespace Game.Entities
|
|||||||
_Create(ObjectGuid.Create(HighGuid.DynamicObject, GetMapId(), spell.Id, guidlow));
|
_Create(ObjectGuid.Create(HighGuid.DynamicObject, GetMapId(), spell.Id, guidlow));
|
||||||
PhasingHandler.InheritPhaseShift(this, caster);
|
PhasingHandler.InheritPhaseShift(this, caster);
|
||||||
|
|
||||||
|
UpdatePositionData();
|
||||||
|
SetZoneScript();
|
||||||
|
|
||||||
SetEntry(spell.Id);
|
SetEntry(spell.Id);
|
||||||
SetObjectScale(1f);
|
SetObjectScale(1f);
|
||||||
|
|
||||||
|
|||||||
@@ -3411,6 +3411,9 @@ namespace Game.Maps
|
|||||||
|
|
||||||
PhasingHandler.InheritPhaseShift(bones, corpse);
|
PhasingHandler.InheritPhaseShift(bones, corpse);
|
||||||
|
|
||||||
|
bones.UpdatePositionData();
|
||||||
|
bones.SetZoneScript();
|
||||||
|
|
||||||
AddCorpse(bones);
|
AddCorpse(bones);
|
||||||
|
|
||||||
// add bones in grid store if grid loaded where corpse placed
|
// add bones in grid store if grid loaded where corpse placed
|
||||||
|
|||||||
Reference in New Issue
Block a user