mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
Fix SMSG_ITEM_COOLDOWN missing cooldownTotal for sweep animation
SMSG_ITEM_COOLDOWN (on-use trinket/item cooldowns) was only setting cooldownRemaining, leaving cooldownTotal=0. The action bar clock-sweep overlay requires both fields; without cooldownTotal the fan shrinks instantly rather than showing the correct elapsed arc.
This commit is contained in:
parent
8c2f69ca0e
commit
2e92ec903c
1 changed files with 1 additions and 0 deletions
|
|
@ -2870,6 +2870,7 @@ void GameHandler::handlePacket(network::Packet& packet) {
|
|||
spellCooldowns[spellId] = cdSec;
|
||||
for (auto& slot : actionBar) {
|
||||
if (slot.type == ActionBarSlot::SPELL && slot.id == spellId) {
|
||||
slot.cooldownTotal = cdSec;
|
||||
slot.cooldownRemaining = cdSec;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue