mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-30 15:40:51 +00:00
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.
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user