prevent camera from constantly resetting

This commit is contained in:
Brues
2026-07-06 17:33:16 -05:00
parent a4ceb8ba53
commit 62e0d4eb07
+4 -3
View File
@@ -165,9 +165,10 @@ pfUI:RegisterModule("afkcam", function ()
afkcam:SetScript("OnEvent", function() afkcam:SetScript("OnEvent", function()
if event == "PLAYER_FLAGS_CHANGED" then if event == "PLAYER_FLAGS_CHANGED" then
local isAFK = UnitIsAFK('player') if UnitIsAFK('player') then
delay:SetShown(isAFK) delay:Show()
if not isAFK then elseif delay:IsVisible() then
delay:Hide()
this:stop() this:stop()
end end
else else