From 12fb8f73f7d961e5cd55eaf96d7406a079045593 Mon Sep 17 00:00:00 2001 From: Kelsi Date: Sat, 21 Mar 2026 06:52:41 -0700 Subject: [PATCH] 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. --- src/game/game_handler.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/game/game_handler.cpp b/src/game/game_handler.cpp index 01e86a5a..bce105c4 100644 --- a/src/game/game_handler.cpp +++ b/src/game/game_handler.cpp @@ -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);