diff --git a/modules/nameplates.lua b/modules/nameplates.lua index c5b7be0b..47eed64d 100644 --- a/modules/nameplates.lua +++ b/modules/nameplates.lua @@ -1,4 +1,5 @@ pfUI:RegisterModule("nameplates", "vanilla:tbc", function () + local function nilfunc() return nil end local font = C.nameplates.use_unitfonts == "1" and pfUI.font_unit or pfUI.font_default local font_size = C.nameplates.use_unitfonts == "1" and C.global.font_unit_size or C.global.font_size local inactive_alpha = tonumber(C.nameplates.notargalpha) @@ -53,7 +54,8 @@ pfUI:RegisterModule("nameplates", "vanilla:tbc", function () this.nameplate = CreateFrame("Button", nil, this) this.nameplate.parent = this this.healthbar, this.castbar = this:GetChildren() - this.healthbar:SetScript("OnEnter", function() return nil end) + this.healthbar:SetScript("OnEnter", nilfunc) + for i, frame in pairs({this:GetRegions()}) do if NAMEPLATE_OBJECTORDER[i] == "_" then frame.Show = function() return end