From ba752056ad04bfcb3fbc552cc441b5eb383a1826 Mon Sep 17 00:00:00 2001 From: Brues <5278969+brues-code@users.noreply.github.com> Date: Thu, 29 Oct 2026 22:40:26 -0500 Subject: [PATCH] Stop the AFK camera when AFK clears while it spins 62e0d4eb stopped the camera only while the start delay was shown, but the delay hides itself once the camera starts. AFK cleared during the spin left the overlay up, and the next key press sent /afk and set AFK again. Stop when the camera spins instead, which also keeps stop() and its SetView(4) from running when AFK clears before the camera started. --- modules/afkcam.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/afkcam.lua b/modules/afkcam.lua index 10422a8a..544675f6 100644 --- a/modules/afkcam.lua +++ b/modules/afkcam.lua @@ -166,9 +166,9 @@ pfUI:RegisterModule("afkcam", function () if event == "PLAYER_FLAGS_CHANGED" then if UnitIsAFK('player') then delay:Show() - elseif delay:IsVisible() then + else delay:Hide() - this:stop() + if this._spinning then this:stop() end end else if this._spinning then