mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-26 21:13:51 +00:00
fix(death): restore corpse reclaim and enforce ghost grayscale
This commit is contained in:
parent
7b5ead8bd9
commit
5b195781ad
4 changed files with 29 additions and 16 deletions
|
|
@ -12908,9 +12908,9 @@ bool GameHandler::canReclaimCorpse() const {
|
|||
|
||||
void GameHandler::reclaimCorpse() {
|
||||
if (!canReclaimCorpse() || !socket) return;
|
||||
network::Packet packet(wireOpcode(Opcode::CMSG_RECLAIM_CORPSE));
|
||||
auto packet = ReclaimCorpsePacket::build(playerGuid);
|
||||
socket->send(packet);
|
||||
LOG_INFO("Sent CMSG_RECLAIM_CORPSE");
|
||||
LOG_INFO("Sent CMSG_RECLAIM_CORPSE for guid=0x", std::hex, playerGuid, std::dec);
|
||||
}
|
||||
|
||||
void GameHandler::activateSpiritHealer(uint64_t npcGuid) {
|
||||
|
|
|
|||
|
|
@ -4881,6 +4881,12 @@ network::Packet RepopRequestPacket::build() {
|
|||
return packet;
|
||||
}
|
||||
|
||||
network::Packet ReclaimCorpsePacket::build(uint64_t guid) {
|
||||
network::Packet packet(wireOpcode(Opcode::CMSG_RECLAIM_CORPSE));
|
||||
packet.writeUInt64(guid);
|
||||
return packet;
|
||||
}
|
||||
|
||||
network::Packet SpiritHealerActivatePacket::build(uint64_t npcGuid) {
|
||||
network::Packet packet(wireOpcode(Opcode::CMSG_SPIRIT_HEALER_ACTIVATE));
|
||||
packet.writeUInt64(npcGuid);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue