mirror of
https://github.com/parnic/LibDogTag-Unit-3.0.git
synced 2025-06-16 13:40:13 -05:00
Remove version check in favor of just a feature check
This commit is contained in:
@ -182,10 +182,10 @@ local function Class(unit)
|
||||
return UnitClass(unit) or UNKNOWN
|
||||
else
|
||||
local classbase, classindex = UnitClassBase(unit)
|
||||
if (wow_800 or WOW_PROJECT_ID) and GetClassInfo then
|
||||
if GetClassInfo then
|
||||
return classbase and GetClassInfo(classindex) or UNKNOWN
|
||||
elseif LOCALIZED_CLASS_NAMES_MALE and LOCALIZED_CLASS_NAMES_FEMALE then
|
||||
if UnitSex(unit) == 3 then
|
||||
if UnitSex and UnitSex(unit) == 3 then
|
||||
return LOCALIZED_CLASS_NAMES_FEMALE[classbase] or UNKNOWN
|
||||
else
|
||||
return LOCALIZED_CLASS_NAMES_MALE[classbase] or UNKNOWN
|
||||
|
Reference in New Issue
Block a user