From 6bbfee842079f994853cee28f947b738def496da Mon Sep 17 00:00:00 2001 From: shagu Date: Mon, 13 Feb 2017 19:30:06 +0100 Subject: [PATCH] nameplates: fix option to hide debuffs --- modules/nameplates.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/nameplates.lua b/modules/nameplates.lua index efea42f0..4d2fb06a 100644 --- a/modules/nameplates.lua +++ b/modules/nameplates.lua @@ -93,7 +93,7 @@ pfUI:RegisterModule("nameplates", function () end function pfUI.nameplates:CreateDebuffs(frame) - if not pfUI_config.nameplates["showdebuffs"] == "1" then return end + if pfUI_config.nameplates["showdebuffs"] ~= "1" then return end if frame.debuffs == nil then frame.debuffs = {} end for j=1, 16, 1 do @@ -329,12 +329,14 @@ pfUI:RegisterModule("nameplates", function () end else healthbar.castbar:Hide() - frame.debuffs[1]:SetPoint("TOPLEFT", healthbar, "BOTTOMLEFT", 0, -3) + if frame.debuffs then + frame.debuffs[1]:SetPoint("TOPLEFT", healthbar, "BOTTOMLEFT", 0, -3) + end end end function pfUI.nameplates:UpdateDebuffs(frame, healthbar) - if not frame.debuffs or not pfUI_config.nameplates["showdebuffs"] == "1" then return end + if not frame.debuffs or pfUI_config.nameplates["showdebuffs"] ~= "1" then return end if UnitExists("target") and healthbar:GetAlpha() == 1 then local j = 1