I was asked to add a power value to my target frames, however I personally don't feel that I want it all the time. Just for boss fights like LDW. I've tries to add it with the UnitClassification(unit) == "worldboss" but it doesn't seem to be working.
Does anyone have any input on how I might accomplish this? Or will I be stuck with values on every target.
Code:
local ppval = lib.gen_fontstring(f, cfg.font, fontsize, "THINOUTLINE")
if (UnitClassification(unit) == "worldboss") then
ppval:SetPoint("RIGHT", f.Power, "RIGHT", 0, -12)
ppval:SetJustifyH("RIGHT")
else
ppval:ClearAllPoints()
end
if (UnitClassification(unit) == "worldboss") then
f:Tag(ppval, "[karma:pp] [karma:power]")
else
f:Tag(ppval, "")
end