From 7207a84dc65b1e91ae19740c5920285658fee180 Mon Sep 17 00:00:00 2001 From: Crum Date: Wed, 2 May 2018 22:11:51 -0500 Subject: [PATCH] Get rid of errors (Temporarily) --- .gitignore | 2 ++ ElvUI/Modules/ActionBars/BarShapeShift.lua | 5 ++--- 2 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0485ba8 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ + +\.DS_Store diff --git a/ElvUI/Modules/ActionBars/BarShapeShift.lua b/ElvUI/Modules/ActionBars/BarShapeShift.lua index 102f284..f38aaa6 100644 --- a/ElvUI/Modules/ActionBars/BarShapeShift.lua +++ b/ElvUI/Modules/ActionBars/BarShapeShift.lua @@ -36,7 +36,6 @@ function AB:StyleShapeShift() local texture, name, isActive, isCastable, _ local buttonName, button, icon, cooldown local numForms = GetNumShapeshiftForms() - local stance = GetShapeshiftFormInfo(numForms) for i = 1, NUM_SHAPESHIFT_SLOTS do buttonName = "ElvUI_StanceBarButton"..i @@ -76,7 +75,7 @@ function AB:StyleShapeShift() button:SetChecked(self.db.barShapeShift.style ~= "darkenInactive") end else - if numForms == 1 or stance == 0 then + if numForms == 1 then button:SetChecked(false) else button:SetChecked(self.db.barShapeShift.style == "darkenInactive") @@ -109,7 +108,7 @@ function AB:PositionAndSizeBarShapeShift() local heightMult = self.db["barShapeShift"].heightMult if bar.mover then bar.mover.positionOverride = point - E:UpdatePositionOverride(bar.mover:GetName()) + E:UpdatePositionOverride(bar:GetName()) end bar.db = self.db["barShapeShift"] bar.db.position = nil --Depreciated