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:
Kelsi 2026-03-11 20:21:37 -07:00
parent 8c2f69ca0e
commit 2e92ec903c

View file

@ -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;
}
}