forgot some cleanups

This commit is contained in:
Meow
2026-03-04 19:23:43 +01:00
parent fef9f1a515
commit dbadbc9a18
+8 -10
View File
@@ -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