mirror of
https://github.com/mangosfour/server.git
synced 2025-12-19 13:37:01 +00:00
[12161] Update talents:
Fix talent learn Fix talent reset Fix talent inspecting original author: @Shauren Signed-off-by: Yaki Khadafi <elsoldollo@gmail.com>
This commit is contained in:
parent
578c440902
commit
55ebf1b64f
16 changed files with 284 additions and 109 deletions
|
|
@ -39,6 +39,7 @@
|
|||
#include "Object.h"
|
||||
#include "BattleGround/BattleGround.h"
|
||||
#include "OutdoorPvP/OutdoorPvP.h"
|
||||
#include "Guild.h"
|
||||
#include "Pet.h"
|
||||
#include "SocialMgr.h"
|
||||
#include "DBCEnums.h"
|
||||
|
|
@ -1111,7 +1112,7 @@ void WorldSession::HandleInspectOpcode(WorldPacket& recv_data)
|
|||
return;
|
||||
|
||||
WorldPacket data(SMSG_INSPECT_RESULTS, 50);
|
||||
data << plr->GetPackGUID();
|
||||
data << plr->GetObjectGuid();
|
||||
|
||||
if (sWorld.getConfig(CONFIG_BOOL_TALENTS_INSPECTING) || _player->isGameMaster())
|
||||
plr->BuildPlayerTalentsInfoData(&data);
|
||||
|
|
@ -1123,6 +1124,13 @@ void WorldSession::HandleInspectOpcode(WorldPacket& recv_data)
|
|||
}
|
||||
|
||||
plr->BuildEnchantmentsInfoData(&data);
|
||||
if (Guild* guild = sGuildMgr.GetGuildById(plr->GetGuildId()))
|
||||
{
|
||||
data << uint64(0/*guild->GetGUID()*/);
|
||||
data << uint32(0/*guild->GetLevel()*/);
|
||||
data << uint64(0/*guild->GetXP()*/);
|
||||
data << uint32(0/*guild->GetMembersCount()*/); // number of members
|
||||
}
|
||||
|
||||
SendPacket(&data);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue