From 70a50e45f5082aba2ecc2e7c800841f289afc2e8 Mon Sep 17 00:00:00 2001 From: Kelsi Date: Sat, 21 Mar 2026 07:12:38 -0700 Subject: [PATCH] feat: fire CONFIRM_TALENT_WIPE event with respec cost Fire CONFIRM_TALENT_WIPE with the gold cost when the trainer offers to reset talents (MSG_TALENT_WIPE_CONFIRM). Used by talent management addons to show the respec cost dialog. --- src/game/game_handler.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/game/game_handler.cpp b/src/game/game_handler.cpp index d7bde9a6..87cc250a 100644 --- a/src/game/game_handler.cpp +++ b/src/game/game_handler.cpp @@ -6151,6 +6151,8 @@ void GameHandler::handlePacket(network::Packet& packet) { talentWipePending_ = true; LOG_INFO("MSG_TALENT_WIPE_CONFIRM: npc=0x", std::hex, talentWipeNpcGuid_, std::dec, " cost=", talentWipeCost_); + if (addonEventCallback_) + addonEventCallback_("CONFIRM_TALENT_WIPE", {std::to_string(talentWipeCost_)}); break; }