mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 07:40:14 +00:00
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:
parent
df79e08788
commit
70a50e45f5
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue