From 6afa9a9bbfbafef43f1c0dd217547037ff63b050 Mon Sep 17 00:00:00 2001 From: andrew6180 <16847730+andrew6180@users.noreply.github.com> Date: Mon, 3 Jul 2023 18:55:42 -0700 Subject: [PATCH] UnitFrames/Player: dont add rage/energy bar to height if not hero --- ElvUI/Modules/UnitFrames/Units/Player.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ElvUI/Modules/UnitFrames/Units/Player.lua b/ElvUI/Modules/UnitFrames/Units/Player.lua index 2270b3d..14a473f 100644 --- a/ElvUI/Modules/UnitFrames/Units/Player.lua +++ b/ElvUI/Modules/UnitFrames/Units/Player.lua @@ -80,7 +80,7 @@ function UF:Update_PlayerFrame(frame, db) frame.POWERBAR_WIDTH = frame.USE_MINI_POWERBAR and (frame.UNIT_WIDTH - (frame.BORDER*2))/2 or (frame.POWERBAR_DETACHED and db.power.detachedWidth or (frame.UNIT_WIDTH - ((frame.BORDER+frame.SPACING)*2))) -- Energy - frame.USE_ENERGYBAR = db.energy.enable + frame.USE_ENERGYBAR = db.energy.enable and E.myclass == "HERO" frame.ENERGYBAR_DETACHED = db.energy.detachFromFrame frame.USE_INSET_ENERGYBAR = not frame.ENERGYBAR_DETACHED and db.energy.width == "inset" and frame.USE_ENERGYBAR frame.USE_MINI_ENERGYBAR = (not frame.ENERGYBAR_DETACHED and db.energy.width == "spaced" and frame.USE_ENERGYBAR) @@ -91,7 +91,7 @@ function UF:Update_PlayerFrame(frame, db) frame.ENERGYBAR_WIDTH = frame.USE_MINI_ENERGYBAR and (frame.UNIT_WIDTH - (frame.BORDER*2))/2 or (frame.ENERGYBAR_DETACHED and db.energy.detachedWidth or (frame.UNIT_WIDTH - ((frame.BORDER+frame.SPACING)*2))) -- Rage - frame.USE_RAGEBAR = db.rage.enable + frame.USE_RAGEBAR = db.rage.enable and E.myclass == "HERO" frame.RAGEBAR_DETACHED = db.rage.detachFromFrame frame.USE_INSET_RAGEBAR = not frame.RAGEBAR_DETACHED and db.rage.width == "inset" and frame.USE_RAGEBAR frame.USE_MINI_RAGEBAR = (not frame.RAGEBAR_DETACHED and db.rage.width == "spaced" and frame.USE_RAGEBAR)