mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
[11005] Finish structure of inspected item fields.
Also restore items inspect show in case disabled talent inspection.
This commit is contained in:
parent
c8fe77f8ca
commit
7864d7f07f
2 changed files with 5 additions and 7 deletions
|
|
@ -1090,18 +1090,16 @@ void WorldSession::HandleInspectOpcode(WorldPacket& recv_data)
|
|||
data << plr->GetPackGUID();
|
||||
|
||||
if(sWorld.getConfig(CONFIG_BOOL_TALENTS_INSPECTING) || _player->isGameMaster())
|
||||
{
|
||||
plr->BuildPlayerTalentsInfoData(&data);
|
||||
plr->BuildEnchantmentsInfoData(&data);
|
||||
}
|
||||
else
|
||||
{
|
||||
data << uint32(0); // unspentTalentPoints
|
||||
data << uint8(0); // talentGroupCount
|
||||
data << uint8(0); // talentGroupIndex
|
||||
data << uint32(0); // slotUsedMask
|
||||
}
|
||||
|
||||
plr->BuildEnchantmentsInfoData(&data);
|
||||
|
||||
SendPacket(&data);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue