aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Handlers/InspectHandler.cpp
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2022-04-14 23:31:17 +0200
committerShauren <shauren.trinity@gmail.com>2022-04-16 12:15:37 +0200
commit55587694053583b4cb85be38a47563a9fdf77271 (patch)
treef1573a869dd4ddb59f55bf8a5779aa7b0b73d49f /src/server/game/Handlers/InspectHandler.cpp
parent798693c0b8c6f4ae43f908c9239e14bcf4c3b76f (diff)
Core/Battlegrounds: Replaced overriding m_team with more fine grained approach
Diffstat (limited to 'src/server/game/Handlers/InspectHandler.cpp')
-rw-r--r--src/server/game/Handlers/InspectHandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Handlers/InspectHandler.cpp b/src/server/game/Handlers/InspectHandler.cpp
index 684fc2c7541..31a0a22e99e 100644
--- a/src/server/game/Handlers/InspectHandler.cpp
+++ b/src/server/game/Handlers/InspectHandler.cpp
@@ -46,7 +46,7 @@ void WorldSession::HandleInspectOpcode(WorldPackets::Inspect::Inspect& inspect)
WorldPackets::Inspect::InspectResult inspectResult;
inspectResult.DisplayInfo.Initialize(player);
- if (GetPlayer()->CanBeGameMaster() || sWorld->getIntConfig(CONFIG_TALENTS_INSPECTING) + (GetPlayer()->GetTeamId() == player->GetTeamId()) > 1)
+ if (GetPlayer()->CanBeGameMaster() || sWorld->getIntConfig(CONFIG_TALENTS_INSPECTING) + (GetPlayer()->GetEffectiveTeam() == player->GetEffectiveTeam()) > 1)
{
PlayerTalentMap const* talents = player->GetTalentMap(player->GetActiveTalentGroup());
for (PlayerTalentMap::value_type const& v : *talents)