Skip to content

Commit

Permalink
move this back up
Browse files Browse the repository at this point in the history
  • Loading branch information
kodewdle committed Dec 7, 2024
1 parent 388d53b commit 157ddef
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions ElvUI_Libraries/Core/oUF_Plugins/oUF_Fader.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 157ddef

Please sign in to comment.