mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-27 09:56:03 +00:00
prevent camera from constantly resetting
This commit is contained in:
+4
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user