From 862d3e30ee15b16badd15c8b008c26a7d2574b05 Mon Sep 17 00:00:00 2001 From: Meow <30401521+me0wg4ming@users.noreply.github.com> Date: Thu, 19 Feb 2026 05:13:10 +0100 Subject: [PATCH] fix for swing timer. * fixed swing timer incorrectly advancing when HITINFO_NOACTION is set (server did not move swing clock) --- modules/swingtimer.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/swingtimer.lua b/modules/swingtimer.lua index 8b86fbf8..7b0a1463 100644 --- a/modules/swingtimer.lua +++ b/modules/swingtimer.lua @@ -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) \ No newline at end of file