Skip to content

Commit

Permalink
only if shown
Browse files Browse the repository at this point in the history
  • Loading branch information
eltreum0 committed Feb 16, 2022
1 parent 73c03a7 commit 167dc66
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ElvUI_EltreumUI/Modules/Nameplates/PowerBar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -598,11 +598,12 @@ function ElvUI_EltreumUI:NameplatePower(nameplate)
end

if E.db.ElvUI_EltreumUI.nameplatepower.autoadjustposition then
if _G['ElvNP_TargetClassPowerRunes'] then
if _G['ElvNP_TargetClassPowerRunes'] and _G['ElvNP_TargetClassPowerRunes']:IsShown() then
EltreumPowerBar:SetPoint("TOP", _G['ElvNP_TargetClassPowerRunes'], "TOP", 0, 7)
elseif _G['ElvNP_TargetClassPowerClassPower'] then
elseif _G['ElvNP_TargetClassPowerClassPower'] and _G['ElvNP_TargetClassPowerClassPower']:IsShown() then
--print("using classpower anchor instead")
EltreumPowerBar:SetPoint("TOP", _G['ElvNP_TargetClassPowerClassPower'], "TOP", 0, 7)
elseif _G['ElvNP_TargetClassPowerStagger'] then
elseif _G['ElvNP_TargetClassPowerStagger'] and _G['ElvNP_TargetClassPowerStagger']:IsShown() then
EltreumPowerBar:SetPoint("TOP", _G['ElvNP_TargetClassPowerStagger'], "TOP", 0, 7)
end
end
Expand Down

0 comments on commit 167dc66

Please sign in to comment.