mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
fix: fire PLAYER_MONEY event from SMSG_LOOT_MONEY_NOTIFY
The loot money handler directly updates playerMoneyCopper_ but wasn't firing PLAYER_MONEY. The update object path fires it when the coinage field changes, but there can be a delay. Now gold-tracking addons (Accountant, GoldTracker) immediately see looted money.
This commit is contained in:
parent
b3ad64099b
commit
d36172fc90
1 changed files with 1 additions and 0 deletions
|
|
@ -4784,6 +4784,7 @@ void GameHandler::handlePacket(network::Packet& packet) {
|
|||
recentLootMoneyAnnounceCooldowns_[notifyGuid] = 1.5f;
|
||||
}
|
||||
}
|
||||
if (addonEventCallback_) addonEventCallback_("PLAYER_MONEY", {});
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue