mirror of
https://github.com/parnic/LibDogTag-Unit-3.0.git
synced 2025-06-16 21:41:53 -05:00
Classification tags now update properly when units change classifications (e.g. elite->normal in the new daily)
This commit is contained in:
@ -233,6 +233,7 @@ DogTag:AddTag("Unit", "Classification", {
|
||||
'unit', 'string;undef', 'player'
|
||||
},
|
||||
ret = "string;nil",
|
||||
events = "UNIT_CLASSIFICATION_CHANGED#$unit",
|
||||
doc = L["Return the classification of unit"],
|
||||
example = ('[Classification] => %q; [Classification] => %q; [Classification] => ""'):format(L["Elite"], L["Boss"]),
|
||||
category = L["Characteristics"]
|
||||
@ -254,6 +255,7 @@ DogTag:AddTag("Unit", "ShortClassification", {
|
||||
'unit', 'string;undef', 'player'
|
||||
},
|
||||
ret = "string;nil",
|
||||
events = "UNIT_CLASSIFICATION_CHANGED#$unit",
|
||||
doc = L["Return a shortened classification of unit, or shorten a classification"],
|
||||
example = ('[ShortClassification] => %q; [%q:ShortClassification] => %q; ["Hello":ShortClassification] => ""'):format(L["Elite_short"], L["Boss"], L["Boss_short"]),
|
||||
category = L["Abbreviations"]
|
||||
|
Reference in New Issue
Block a user