diff options
author | Jeremy <Golrag@users.noreply.github.com> | 2023-08-24 11:48:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-24 11:48:09 +0200 |
commit | 1336370b4583400abb93d6e306814b05f3c7553b (patch) | |
tree | ff619e11c0deb2209b880b936a10984307fb42ba | |
parent | fa836ee433f01361212ee7165afe47c96a3aa7b2 (diff) |
Core/GameObject: Mark some pvp related gameobjects as active (#29249)
-rw-r--r-- | src/server/game/Entities/GameObject/GameObject.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/server/game/Entities/GameObject/GameObject.cpp b/src/server/game/Entities/GameObject/GameObject.cpp index b7d77cad622..05126b2be41 100644 --- a/src/server/game/Entities/GameObject/GameObject.cpp +++ b/src/server/game/Entities/GameObject/GameObject.cpp @@ -844,6 +844,12 @@ bool GameObject::Create(uint32 entry, Map* map, Position const& pos, QuaternionD break; case GAMEOBJECT_TYPE_NEW_FLAG: m_goTypeImpl = std::make_unique<GameObjectType::NewFlag>(*this); + if (map->Instanceable()) + setActive(true); + break; + case GAMEOBJECT_TYPE_NEW_FLAG_DROP: + if (map->Instanceable()) + setActive(true); break; case GAMEOBJECT_TYPE_PHASEABLE_MO: RemoveFlag(GameObjectFlags(0xF00)); @@ -855,6 +861,8 @@ bool GameObject::Create(uint32 entry, Map* map, Position const& pos, QuaternionD m_goValue.CapturePoint.LastTeamCapture = TEAM_NEUTRAL; m_goValue.CapturePoint.State = WorldPackets::Battleground::BattlegroundCapturePointState::Neutral; UpdateCapturePoint(); + if (map->Instanceable()) + setActive(true); break; default: SetGoAnimProgress(animProgress); |