mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 15:50:20 +00:00
feat: fire CHAT_MSG_COMBAT_XP_GAIN on area exploration XP
Fire CHAT_MSG_COMBAT_XP_GAIN from SMSG_EXPLORATION_EXPERIENCE when the player discovers a new area and gains exploration XP. Used by XP tracking addons to count all XP sources including discovery.
This commit is contained in:
parent
24e2069225
commit
1988e778c7
1 changed files with 2 additions and 0 deletions
|
|
@ -2078,6 +2078,8 @@ void GameHandler::handlePacket(network::Packet& packet) {
|
|||
// XP is updated via PLAYER_XP update fields from the server.
|
||||
if (areaDiscoveryCallback_)
|
||||
areaDiscoveryCallback_(areaName, xpGained);
|
||||
if (addonEventCallback_)
|
||||
addonEventCallback_("CHAT_MSG_COMBAT_XP_GAIN", {msg, std::to_string(xpGained)});
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue