From 5c3b934735765649e11ca6070d836e4cf2eea0ad Mon Sep 17 00:00:00 2001 From: Darth Predator Date: Tue, 25 Apr 2017 05:05:21 +0300 Subject: [PATCH] Maybe a fix for forced afk screen closing camera issue. --- ElvUI_SLE/modules/afk.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ElvUI_SLE/modules/afk.lua b/ElvUI_SLE/modules/afk.lua index 58c8ac6..082ba16 100644 --- a/ElvUI_SLE/modules/afk.lua +++ b/ElvUI_SLE/modules/afk.lua @@ -353,6 +353,13 @@ end --Camera rotation script when entering or leaving afk function S:Event(event, unit) if not E.db.general.afk then return end + if event == "PLAYER_REGEN_DISABLED" then + SS:SetScript("OnUpdate", nil) + T.FlipCameraYaw(-degree) + degree = 0 + TipsElapsed = 0 + return + end if (event == "PLAYER_FLAGS_CHANGED" and unit ~= "player") or event ~= "PLAYER_FLAGS_CHANGED" then return end if (InCombatLockdown() or CinematicFrame:IsShown() or MovieFrame:IsShown()) then return; end --Don't activate afk if player is crafting stuff -- 1.7.9.5