mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 07:40:14 +00:00
feat: add Shaman totem bar in player frame
Store active totem state (slot, spellId, duration, placedAt) from SMSG_TOTEM_CREATED. Render 4 element slots (Earth/Fire/Water/Air) as color-coded duration bars in the player frame for Shamans (class 7). Shows countdown seconds, element letter when inactive, and tooltip with spell name + remaining time on hover.
This commit is contained in:
parent
8efdaed7e4
commit
5827a8fcdd
3 changed files with 107 additions and 0 deletions
|
|
@ -3061,6 +3061,11 @@ void GameHandler::handlePacket(network::Packet& packet) {
|
|||
uint32_t spellId = packet.readUInt32();
|
||||
LOG_DEBUG("SMSG_TOTEM_CREATED: slot=", (int)slot,
|
||||
" spellId=", spellId, " duration=", duration, "ms");
|
||||
if (slot < NUM_TOTEM_SLOTS) {
|
||||
activeTotemSlots_[slot].spellId = spellId;
|
||||
activeTotemSlots_[slot].durationMs = duration;
|
||||
activeTotemSlots_[slot].placedAt = std::chrono::steady_clock::now();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case Opcode::SMSG_AREA_SPIRIT_HEALER_TIME: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue