From c2c29946cf26282b6f90429f5641d4f8b7e672cf Mon Sep 17 00:00:00 2001 From: shagu Date: Mon, 13 Feb 2017 19:36:11 +0100 Subject: [PATCH] nameplates: fix nil error --- modules/nameplates.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/nameplates.lua b/modules/nameplates.lua index 4d2fb06a..4174e339 100644 --- a/modules/nameplates.lua +++ b/modules/nameplates.lua @@ -320,7 +320,9 @@ pfUI:RegisterModule("nameplates", function () healthbar.castbar.spell:SetText("") end healthbar.castbar:Show() - frame.debuffs[1]:SetPoint("TOPLEFT", healthbar.castbar, "BOTTOMLEFT", 0, -3) + if frame.debuffs then + frame.debuffs[1]:SetPoint("TOPLEFT", healthbar.castbar, "BOTTOMLEFT", 0, -3) + end if pfUI.castbar.target.casterDB[name:GetText()]["icon"] then healthbar.castbar.icon:SetTexture("Interface\\Icons\\" .. pfUI.castbar.target.casterDB[name:GetText()]["icon"])