From 62e0d4eb074ecf0ada1da4d08abc2c6052c60fe5 Mon Sep 17 00:00:00 2001 From: Brues <5278969+brues-code@users.noreply.github.com> Date: Mon, 6 Jul 2026 17:33:16 -0500 Subject: [PATCH] prevent camera from constantly resetting --- modules/afkcam.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/afkcam.lua b/modules/afkcam.lua index 9a582cd4..e2668023 100644 --- a/modules/afkcam.lua +++ b/modules/afkcam.lua @@ -165,9 +165,10 @@ pfUI:RegisterModule("afkcam", function () afkcam:SetScript("OnEvent", function() if event == "PLAYER_FLAGS_CHANGED" then - local isAFK = UnitIsAFK('player') - delay:SetShown(isAFK) - if not isAFK then + if UnitIsAFK('player') then + delay:Show() + elseif delay:IsVisible() then + delay:Hide() this:stop() end else