Hai ...
For some obscure reason --
My Focus' power tag doesn't seem to update as it should. It seems to not see depletion or replenishment until I cast an HP changing buff. (Heals have no effect). The powerbar (when enabled) shows up fine. Did I make an oopsie?
Funny note : The code is the same as Focustarget, which does work fine.
(Player, Target, ToT, FocusTarget, Pet all work fine.)
Code:
elseif unit == "focus" or unit == "focustarget" then
self.Name = SetFontString(self.Health, font, fontSize+1, "LEFT", self.Health, "LEFT", 2, 0)
self:Tag(self.Name, "[raidcolor][shortname] [dead]")
self.Health.value = SetFontString(self.Health, font, fontSize+1, "RIGHT", self.Health, "RIGHT", -2, 0)
self:Tag(self.Health.value, "[colorperpp]%|r | [perhp]%")
ANd the tags themselves -- credit to P3lim btw
Code:
oUF.Tags["[colorperpp]"] = function(unit)
local _, str = UnitPowerType(unit)
return ('%s%d'):format(hex(colors.power[str] or {1, 1, 1}), oUF.Tags['[perpp]'](unit) or '')
end