fix for swing timer.

* fixed swing timer incorrectly advancing when HITINFO_NOACTION is set (server did not move swing clock)
This commit is contained in:
Meow
2026-02-19 05:13:10 +01:00
parent 53969ddc01
commit 862d3e30ee
+4 -2
View File
@@ -276,7 +276,9 @@ pfUI:RegisterModule("swingtimer", "vanilla:tbc", function ()
events:SetScript("OnEvent", function()
if event == "AUTO_ATTACK_SELF" then
-- arg4 = hitInfo (Nampower EVENTS.md)
local hitInfo = arg4 or 0
local hitInfo = arg4 or 0
-- HITINFO_NOACTION (65536): server did not advance the swing clock, ignore
if bit.band(hitInfo, 65536) ~= 0 then return end
local isOffhand = bit.band(hitInfo, HITINFO_LEFTSWING) ~= 0
StartSwing(isOffhand)
@@ -322,4 +324,4 @@ pfUI:RegisterModule("swingtimer", "vanilla:tbc", function ()
UpdateWeaponSpeeds()
UpdateHSCleaveSlots()
end)
end)