mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
feat: fire BAG_UPDATE and PLAYER_MONEY events after selling items
SMSG_SELL_ITEM success now fires BAG_UPDATE so bag addons refresh their display, and PLAYER_MONEY so gold tracking addons see the sell price income immediately.
This commit is contained in:
parent
b407d5d632
commit
12fb8f73f7
1 changed files with 4 additions and 0 deletions
|
|
@ -4808,6 +4808,10 @@ void GameHandler::handlePacket(network::Packet& packet) {
|
|||
if (auto* sfx = renderer->getUiSoundManager())
|
||||
sfx->playDropOnGround();
|
||||
}
|
||||
if (addonEventCallback_) {
|
||||
addonEventCallback_("BAG_UPDATE", {});
|
||||
addonEventCallback_("PLAYER_MONEY", {});
|
||||
}
|
||||
} else {
|
||||
bool removedPending = false;
|
||||
auto it = pendingSellToBuyback_.find(itemGuid);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue