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