From dbadbc9a184c2e28b797ba9824758c5653f15aa0 Mon Sep 17 00:00:00 2001 From: Meow <30401521+me0wg4ming@users.noreply.github.com> Date: Wed, 4 Mar 2026 19:23:43 +0100 Subject: [PATCH] forgot some cleanups --- modules/swingtimer.lua | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/modules/swingtimer.lua b/modules/swingtimer.lua index 951409c7..4bcf6377 100644 --- a/modules/swingtimer.lua +++ b/modules/swingtimer.lua @@ -581,7 +581,7 @@ pfUI:RegisterModule("swingtimer", "vanilla:tbc", function () if event == "AUTO_ATTACK_SELF" then local hitInfo = arg4 or 0 local isOffhand = bit.band(hitInfo, HITINFO_LEFTSWING) ~= 0 - local noAction = bit.band(hitInfo, HITINFO_NOACTION) ~= 0, tostring(noAction))) + local noAction = bit.band(hitInfo, HITINFO_NOACTION) ~= 0 if noAction then return end -- Extra attack detection: if timer still has >20% remaining for that hand, @@ -590,15 +590,15 @@ pfUI:RegisterModule("swingtimer", "vanilla:tbc", function () -- Exception: if timer is already at 0 (expired), always accept. if isOffhand then local pct = ohActive and (ohTimer / ohTimerMax) or 0 - if ohActive and ohTimer > 0 and pct > 0.20 then) + if ohActive and ohTimer > 0 and pct > 0.20 then return - end|r", pct*100, ohTimer)) + end ResetOH() else local pct = mhActive and (mhTimer / mhTimerMax) or 0 - if mhActive and mhTimer > 0 and pct > 0.20 then) + if mhActive and mhTimer > 0 and pct > 0.20 then return - end|r", pct*100, mhTimer)) + end ResetMH() end @@ -619,8 +619,7 @@ pfUI:RegisterModule("swingtimer", "vanilla:tbc", function () local reduct = ohSpeed * 0.40 local before = ohTimer ohTimer = ohTimer - reduct - if ohTimer < minimum then ohTimer = minimum end*100)) - else) + if ohTimer < minimum then ohTimer = minimum end end elseif mhActive and mhSpeed > 0 then local minimum = mhSpeed * 0.20 @@ -628,10 +627,9 @@ pfUI:RegisterModule("swingtimer", "vanilla:tbc", function () local reduct = mhSpeed * 0.40 local before = mhTimer mhTimer = mhTimer - reduct - if mhTimer < minimum then mhTimer = minimum end*100)) - else) + if mhTimer < minimum then mhTimer = minimum end end - else, tostring(ohActive), mhTimer, ohTimer)) + else end end