diff options
author | Ovahlord <dreadkiller@gmx.de> | 2023-11-20 20:06:54 +0100 |
---|---|---|
committer | Ovahlord <dreadkiller@gmx.de> | 2023-11-20 20:30:12 +0100 |
commit | 1195d7c190582f0b95f0afef7660cd108fcbd8c3 (patch) | |
tree | 43245aef52986471017058b18b59fdb56b57d62d /src/server/game/Handlers/InspectHandler.cpp | |
parent | e08019ee56415e19f3343cba88a319402348f08b (diff) |
Core/Players: re-implement talents
*todo: class restriction and talent tier checks and remove the now useless learn all talents command
Diffstat (limited to 'src/server/game/Handlers/InspectHandler.cpp')
-rw-r--r-- | src/server/game/Handlers/InspectHandler.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/server/game/Handlers/InspectHandler.cpp b/src/server/game/Handlers/InspectHandler.cpp index 865dcc25152..87023704fa5 100644 --- a/src/server/game/Handlers/InspectHandler.cpp +++ b/src/server/game/Handlers/InspectHandler.cpp @@ -47,10 +47,12 @@ void WorldSession::HandleInspectOpcode(WorldPackets::Inspect::Inspect& inspect) 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) if (v.second != PLAYERSPELL_REMOVED) inspectResult.Talents.push_back(v.first); + */ inspectResult.TalentTraits.Level = player->GetLevel(); inspectResult.TalentTraits.ChrSpecializationID = AsUnderlyingType(player->GetPrimarySpecialization()); |