mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-27 18:06:02 +00:00
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:
@@ -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)
|
||||
Reference in New Issue
Block a user