unrestrict nameplate units, we dont have restrictions with awesomewotlk

This commit is contained in:
NoM0Re
2024-07-01 17:16:03 +02:00
parent 55939acfe0
commit 60460fb912
6 changed files with 9 additions and 12 deletions
+1 -1
View File
@@ -117,7 +117,7 @@ local function GetCustomTriggerOptions(data, triggernum)
end
elseif trueEvent:match("^UNIT_") then
local unit = string.lower(i)
if not OptionsPrivate.Private.baseUnitId[unit] and not OptionsPrivate.Private.multiUnitId[unit] then
if not (OptionsPrivate.Private.baseUnitId[unit] or string.find(unit, "^nameplate%d+$")) and not OptionsPrivate.Private.multiUnitId[unit] then
return "|cFFFF0000"..L["Unit %s is not a valid unit for RegisterUnitEvent"]:format(unit)
end
end