feat(Core/OutdoorPvP): Add getters for Capture points for Outdoorpvp (#25103)

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Keleborn 2026-03-17 16:20:15 -07:00 committed by GitHub
parent 601a4231f6
commit 72ac87626b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -242,6 +242,8 @@ public:
void TeamApplyBuff(TeamId teamId, uint32 spellId, uint32 spellId2 = 0, Player* sameMapPlr = nullptr);
Map* GetMap() const { return _map; }
OPvPCapturePointMap const& GetCapturePoints() const { return _capturePoints; }
OPvPCapturePoint* GetCapturePoint(ObjectGuid::LowType spawnId) const;
protected:
void BroadcastPacket(WorldPacket& data) const;
@ -256,7 +258,6 @@ protected:
_capturePoints[cp->m_capturePointSpawnId] = cp;
}
OPvPCapturePoint* GetCapturePoint(ObjectGuid::LowType spawnId) const;
void RegisterZone(uint32 zoneid);
bool HasPlayer(Player const* player) const;
void TeamCastSpell(TeamId team, int32 spellId, Player* sameMapPlr = nullptr);