mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
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:
parent
5d93108a88
commit
b407d5d632
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue