mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-29 18:56:02 +00:00
unitframes: only show class on player characters
This commit is contained in:
+5
-1
@@ -2114,7 +2114,11 @@ function pfUI.uf:GetStatusValue(unit, pos)
|
||||
elseif config == "level" then
|
||||
return unit:GetColor("level") .. pfUI.uf:GetLevelString(unitstr)
|
||||
elseif config == "class" then
|
||||
return unit:GetColor("class") .. (UnitClass(unitstr) or UNKNOWN)
|
||||
if UnitIsPlayer(unitstr) then
|
||||
return unit:GetColor("class") .. (UnitClass(unitstr) or UNKNOWN)
|
||||
else
|
||||
return ""
|
||||
end
|
||||
|
||||
-- health
|
||||
elseif config == "health" then
|
||||
|
||||
Reference in New Issue
Block a user