mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-27 01:00:13 +00:00
game: implement dual-spec switch via CMSG_SET_ACTIVE_TALENT_GROUP (0x4C3)
switchTalentSpec() was only updating local state without notifying the server, leaving the server out of sync with the client's active talent group. Now sends CMSG_SET_ACTIVE_TALENT_GROUP_OBSOLETE (WotLK wire opcode 0x4C3) with the target group index (0=primary, 1=secondary), prompting the server to apply the spec swap and respond with a fresh SMSG_TALENTS_INFO for the newly active group. Also adds ActivateTalentGroupPacket::build() to world_packets for the packet construction.
This commit is contained in:
parent
d339734143
commit
52c1fed6ab
3 changed files with 25 additions and 3 deletions
|
|
@ -3935,6 +3935,14 @@ network::Packet TalentWipeConfirmPacket::build(bool accept) {
|
|||
return packet;
|
||||
}
|
||||
|
||||
network::Packet ActivateTalentGroupPacket::build(uint32_t group) {
|
||||
// CMSG_SET_ACTIVE_TALENT_GROUP_OBSOLETE (0x4C3 in WotLK 3.3.5a)
|
||||
// Payload: uint32 group (0 = primary, 1 = secondary)
|
||||
network::Packet packet(wireOpcode(Opcode::CMSG_SET_ACTIVE_TALENT_GROUP_OBSOLETE));
|
||||
packet.writeUInt32(group);
|
||||
return packet;
|
||||
}
|
||||
|
||||
// ============================================================
|
||||
// Death/Respawn
|
||||
// ============================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue