From b66ccd9198ba0ae792b564a4a864705ca619b10d Mon Sep 17 00:00:00 2001 From: shagu Date: Tue, 24 Jun 2025 11:43:34 +0200 Subject: [PATCH] castbar: ignore empty or invalid unitstr --- modules/castbar.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/castbar.lua b/modules/castbar.lua index 61ab3fdc..d8ef773b 100644 --- a/modules/castbar.lua +++ b/modules/castbar.lua @@ -83,7 +83,7 @@ pfUI:RegisterModule("castbar", "vanilla:tbc", function () end local channel = nil - local query = this.unitstr and UnitName(this.unitstr) or this.unitname + local query = this.unitstr ~= "" and this.unitstr or this.unitname if not query then return end -- transform all non player unitstrings to unit guids