diff --git a/ElvUI_EltreumUI/Modules/Nameplates/PowerBar.lua b/ElvUI_EltreumUI/Modules/Nameplates/PowerBar.lua index 2689d004d..55bc45fad 100644 --- a/ElvUI_EltreumUI/Modules/Nameplates/PowerBar.lua +++ b/ElvUI_EltreumUI/Modules/Nameplates/PowerBar.lua @@ -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