mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
feat: fire CHAT_MSG_COMBAT_HONOR_GAIN event on PvP honor kills
Fire CHAT_MSG_COMBAT_HONOR_GAIN from SMSG_PVP_CREDIT with the honor message text. Used by PvP addons (HonorSpy, HonorTracker) to track honor gains and kill counts.
This commit is contained in:
parent
d20357415b
commit
64c0c75bbf
1 changed files with 2 additions and 0 deletions
|
|
@ -2229,6 +2229,8 @@ void GameHandler::handlePacket(network::Packet& packet) {
|
||||||
if (pvpHonorCallback_) {
|
if (pvpHonorCallback_) {
|
||||||
pvpHonorCallback_(honor, victimGuid, rank);
|
pvpHonorCallback_(honor, victimGuid, rank);
|
||||||
}
|
}
|
||||||
|
if (addonEventCallback_)
|
||||||
|
addonEventCallback_("CHAT_MSG_COMBAT_HONOR_GAIN", {msg});
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue