mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 16:10:36 +00:00
Backport the TBC PLAYER_TOTEM_UPDATE(totemSlot) event (absent from vanilla's table, so reserved as a custom event) on top of the existing Totem::Tracker. Every slot state change marks a dirty bit — the cast path (SpellGo), duration expiry, and the WorldTick death-scan removal — and OnTick flushes the dirty slots with Fire(id, "%d", slot). Flushing from the tick keeps Lua handlers out of mid-packet context. Drops fire next frame; removals within the ~250ms scan interval. Verified in-game.