Core/Objects: Initialize position data and zone/instance script for all worldobject types (except player)

This commit is contained in:
Shauren
2022-04-23 23:03:22 +02:00
parent 372c84e998
commit fddd6cdf3f
6 changed files with 18 additions and 0 deletions
@@ -94,6 +94,9 @@ bool DynamicObject::CreateDynamicObject(ObjectGuid::LowType guidlow, Unit* caste
WorldObject::_Create(ObjectGuid::Create<HighGuid::DynamicObject>(GetMapId(), spell->Id, guidlow));
PhasingHandler::InheritPhaseShift(this, caster);
UpdatePositionData();
SetZoneScript();
SetEntry(spell->Id);
SetObjectScale(1.0f);
auto dynamicObjectData = m_values.ModifyValue(&DynamicObject::m_dynamicObjectData);