feat: fire RESURRECT_REQUEST event when another player offers resurrection

Fire RESURRECT_REQUEST with the caster's name from SMSG_RESURRECT_REQUEST
when a player/NPC offers to resurrect the dead player. Used by auto-accept
resurrection addons and death tracking addons.
This commit is contained in:
Kelsi 2026-03-21 06:47:32 -07:00
parent 5d93108a88
commit b407d5d632

View file

@ -4056,6 +4056,8 @@ void GameHandler::handlePacket(network::Packet& packet) {
resurrectCasterName_ = (nit != playerNameCache.end()) ? nit->second : ""; resurrectCasterName_ = (nit != playerNameCache.end()) ? nit->second : "";
} }
resurrectRequestPending_ = true; resurrectRequestPending_ = true;
if (addonEventCallback_)
addonEventCallback_("RESURRECT_REQUEST", {resurrectCasterName_});
} }
break; break;
} }