swingtimer: drive the timers from ClassicAPI's PLAYER_SWING

Replaces the Lua reconstruction of the swing clock (AUTO_ATTACK_SELF with
an extra-attack guess, parry-haste maths, Slam freeze, DBC-based reset
checks on every SPELL_GO including triggered spells). PLAYER_SWING tracks
the server's clock from packets, so triggered casts, extra attacks, parry
haste, weapon swaps and the ranged wind-up all match the server.

Refs #58
This commit is contained in:
Brues
2026-09-25 10:56:01 -05:00
parent b57fc52f9a
commit cbc531531c
2 changed files with 32 additions and 175 deletions
+1 -1
View File
@@ -937,7 +937,7 @@ if hasNampower then
local numMissed = arg7 or 0
-- Fire registered SPELL_GO_SELF hooks BEFORE miss guard
-- (Swingtimer needs to see ALL casts, even misses, for swing reset)
-- (Swingtimer needs to see ALL casts, even misses, to clear its queue color)
if event == "SPELL_GO_SELF" and pfUI.libdebuff_spell_go_hooks then
for _, fn in pairs(pfUI.libdebuff_spell_go_hooks) do
fn(spellId, arg1, arg2, arg3, arg4, arg5, arg6, arg7)