Classification tags now update properly when units change classifications (e.g. elite->normal in the new daily)

This commit is contained in:
ellipsis
2008-03-29 19:16:39 +00:00
parent c1e0189e86
commit 2a89fde515

View File

@ -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"]