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.
This commit is contained in:
Kelsi 2026-03-21 07:12:38 -07:00
parent df79e08788
commit 70a50e45f5

View file

@ -6151,6 +6151,8 @@ void GameHandler::handlePacket(network::Packet& packet) {
talentWipePending_ = true; talentWipePending_ = true;
LOG_INFO("MSG_TALENT_WIPE_CONFIRM: npc=0x", std::hex, talentWipeNpcGuid_, LOG_INFO("MSG_TALENT_WIPE_CONFIRM: npc=0x", std::hex, talentWipeNpcGuid_,
std::dec, " cost=", talentWipeCost_); std::dec, " cost=", talentWipeCost_);
if (addonEventCallback_)
addonEventCallback_("CONFIRM_TALENT_WIPE", {std::to_string(talentWipeCost_)});
break; break;
} }