Skip to content

Commit 92b9410

Browse files
TraeshShauren
authored andcommitted
Core/GameObjects: Implement "EnableDoodadSets" for phaseableMO gameobject type
1 parent 02e4fb5 commit 92b9410

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/server/game/Entities/GameObject/GameObject.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1147,6 +1147,12 @@ bool GameObject::Create(uint32 entry, Map* map, Position const& pos, QuaternionD
11471147
case GAMEOBJECT_TYPE_PHASEABLE_MO:
11481148
RemoveFlag(GameObjectFlags(0xF00));
11491149
SetFlag(GameObjectFlags((m_goInfo->phaseableMO.AreaNameSet & 0xF) << 8));
1150+
1151+
if (GetGOInfo()->phaseableMO.DoodadSetA)
1152+
AddDynamicUpdateFieldValue(m_values.ModifyValue(&GameObject::m_gameObjectData).ModifyValue(&UF::GameObjectData::EnableDoodadSets)) = static_cast<int32>(GetGOInfo()->phaseableMO.DoodadSetA);
1153+
1154+
if (GetGOInfo()->phaseableMO.DoodadSetB)
1155+
AddDynamicUpdateFieldValue(m_values.ModifyValue(&GameObject::m_gameObjectData).ModifyValue(&UF::GameObjectData::EnableDoodadSets)) = static_cast<int32>(GetGOInfo()->phaseableMO.DoodadSetB);
11501156
break;
11511157
case GAMEOBJECT_TYPE_CAPTURE_POINT:
11521158
SetUpdateFieldValue(m_values.ModifyValue(&GameObject::m_gameObjectData).ModifyValue(&UF::GameObjectData::SpellVisualID), m_goInfo->capturePoint.SpellVisual1);

0 commit comments

Comments
 (0)