mirror of
https://github.com/parnic/LibDogTag-Unit-3.0.git
synced 2025-06-16 05:30:14 -05:00
fix: https://github.com/ascott18/TellMeWhen/issues/2088 UnitName can rarely return nil on a valid unit
This commit is contained in:
@ -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")),
|
||||
|
Reference in New Issue
Block a user