From 25741b23050325d4478b233845856726f0f6ea22 Mon Sep 17 00:00:00 2001 From: shagu Date: Mon, 21 Aug 2017 18:58:53 +0200 Subject: [PATCH] nameplates: fix castbar nil error --- modules/nameplates.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/nameplates.lua b/modules/nameplates.lua index 58812831..14c6f751 100644 --- a/modules/nameplates.lua +++ b/modules/nameplates.lua @@ -446,7 +446,10 @@ pfUI:RegisterModule("nameplates", function () end end else - healthbar.castbar:Hide() + if healthbar.castbar then + healthbar.castbar:Hide() + end + if this.debuffs then this.debuffs[1]:SetPoint("TOPLEFT", healthbar, "BOTTOMLEFT", 0, -3) end