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