From 7a2e432488a4af48dba5080769c212ad73309f7b Mon Sep 17 00:00:00 2001 From: Andrew Scott Date: Sat, 7 Sep 2024 20:37:43 -0700 Subject: [PATCH] fix: https://github.com/ascott18/TellMeWhen/issues/2088 UnitName can rarely return nil on a valid unit --- Categories/Characteristics.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Categories/Characteristics.lua b/Categories/Characteristics.lua index fb212de..781c1ae 100644 --- a/Categories/Characteristics.lua +++ b/Categories/Characteristics.lua @@ -103,7 +103,7 @@ DogTag:AddTag("Unit", "SimpleName", { arg = { 'unit', 'string;undef', 'player' }, - ret = "string", + ret = "string;nil", events = "UNIT_NAME_UPDATE#$unit", doc = L["Return the name of unit"], example = ('[SimpleName] => %q'):format(UnitName("player")),