From 92b9410b7af042bd9cbbfbc25b117559c6300df3 Mon Sep 17 00:00:00 2001 From: Traesh Date: Sat, 21 Mar 2026 15:27:19 +0100 Subject: [PATCH] Core/GameObjects: Implement "EnableDoodadSets" for phaseableMO gameobject type --- src/server/game/Entities/GameObject/GameObject.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/server/game/Entities/GameObject/GameObject.cpp b/src/server/game/Entities/GameObject/GameObject.cpp index d4f52918ba..7911d88a3c 100644 --- a/src/server/game/Entities/GameObject/GameObject.cpp +++ b/src/server/game/Entities/GameObject/GameObject.cpp @@ -1147,6 +1147,12 @@ bool GameObject::Create(uint32 entry, Map* map, Position const& pos, QuaternionD case GAMEOBJECT_TYPE_PHASEABLE_MO: RemoveFlag(GameObjectFlags(0xF00)); SetFlag(GameObjectFlags((m_goInfo->phaseableMO.AreaNameSet & 0xF) << 8)); + + if (GetGOInfo()->phaseableMO.DoodadSetA) + AddDynamicUpdateFieldValue(m_values.ModifyValue(&GameObject::m_gameObjectData).ModifyValue(&UF::GameObjectData::EnableDoodadSets)) = static_cast(GetGOInfo()->phaseableMO.DoodadSetA); + + if (GetGOInfo()->phaseableMO.DoodadSetB) + AddDynamicUpdateFieldValue(m_values.ModifyValue(&GameObject::m_gameObjectData).ModifyValue(&UF::GameObjectData::EnableDoodadSets)) = static_cast(GetGOInfo()->phaseableMO.DoodadSetB); break; case GAMEOBJECT_TYPE_CAPTURE_POINT: SetUpdateFieldValue(m_values.ModifyValue(&GameObject::m_gameObjectData).ModifyValue(&UF::GameObjectData::SpellVisualID), m_goInfo->capturePoint.SpellVisual1);