From 157ddef2cf436160048f870ba8d8a6abe49c9d48 Mon Sep 17 00:00:00 2001 From: Simpy Date: Sat, 7 Dec 2024 11:02:14 -0500 Subject: [PATCH] move this back up --- ElvUI_Libraries/Core/oUF_Plugins/oUF_Fader.lua | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/ElvUI_Libraries/Core/oUF_Plugins/oUF_Fader.lua b/ElvUI_Libraries/Core/oUF_Plugins/oUF_Fader.lua index 473c313dda..fe540d684f 100644 --- a/ElvUI_Libraries/Core/oUF_Plugins/oUF_Fader.lua +++ b/ElvUI_Libraries/Core/oUF_Plugins/oUF_Fader.lua @@ -76,6 +76,15 @@ local function Update(self, event, unit) return end + -- stuff for Skyriding + if oUF.isRetail then + if event == 'ForceUpdate' then + isGliding = C_PlayerInfo_GetGlidingInfo() + elseif event == 'PLAYER_IS_GLIDING_CHANGED' then + isGliding = unit -- unit is true/false with the event being PLAYER_IS_GLIDING_CHANGED + end + end + -- try to get the unit from the parent if not unit or type(unit) ~= 'string' then unit = self.unit @@ -99,15 +108,6 @@ local function Update(self, event, unit) updateInstanceDifficulty(element) end - -- stuff for Skyriding - if oUF.isRetail then - if event == 'ForceUpdate' then - isGliding = C_PlayerInfo_GetGlidingInfo() - elseif event == 'PLAYER_IS_GLIDING_CHANGED' then - isGliding = unit -- unit is true/false with the event being PLAYER_IS_GLIDING_CHANGED - end - end - -- normal fader local _, powerType if element.Power then