mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
feat: fire TRAINER_UPDATE and SPELLS_CHANGED after trainer purchase
Fire TRAINER_UPDATE from SMSG_TRAINER_BUY_SUCCEEDED so trainer UI addons refresh the spell list (marking learned spells as unavailable). Also fire SPELLS_CHANGED so spellbook and action bar addons detect the newly learned spell.
This commit is contained in:
parent
5d6376f3f1
commit
964437cdf4
1 changed files with 4 additions and 0 deletions
|
|
@ -4127,6 +4127,10 @@ void GameHandler::handlePacket(network::Packet& packet) {
|
|||
if (auto* sfx = renderer->getUiSoundManager())
|
||||
sfx->playQuestActivate();
|
||||
}
|
||||
if (addonEventCallback_) {
|
||||
addonEventCallback_("TRAINER_UPDATE", {});
|
||||
addonEventCallback_("SPELLS_CHANGED", {});
|
||||
}
|
||||
break;
|
||||
}
|
||||
case Opcode::SMSG_TRAINER_BUY_FAILED: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue