Refine resurrection flow

This commit is contained in:
Kelsi 2026-02-07 21:47:14 -08:00
parent ff6155e2f3
commit 7cd7ac43a9
7 changed files with 120 additions and 20 deletions

View file

@ -2589,7 +2589,7 @@ bool ListInventoryParser::parse(network::Packet& packet, ListInventoryData& data
network::Packet RepopRequestPacket::build() {
network::Packet packet(static_cast<uint16_t>(Opcode::CMSG_REPOP_REQUEST));
packet.writeUInt8(0); // auto-release flag (0 = manual)
packet.writeUInt8(1); // request release (1 = manual)
return packet;
}
@ -2599,6 +2599,13 @@ network::Packet SpiritHealerActivatePacket::build(uint64_t npcGuid) {
return packet;
}
network::Packet ResurrectResponsePacket::build(uint64_t casterGuid, bool accept) {
network::Packet packet(static_cast<uint16_t>(Opcode::CMSG_RESURRECT_RESPONSE));
packet.writeUInt64(casterGuid);
packet.writeUInt8(accept ? 1 : 0);
return packet;
}
// ============================================================
// Taxi / Flight Paths
// ============================================================