castbar: ignore empty or invalid unitstr

This commit is contained in:
shagu
2025-06-24 11:51:30 +02:00
parent 5646750682
commit b66ccd9198
+1 -1
View File
@@ -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