nameplates: fix nil error

This commit is contained in:
shagu
2017-02-13 19:36:11 +01:00
parent 6bbfee8420
commit c2c29946cf
+3 -1
View File
@@ -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"])