Libs/oUF: Nameplates now have native UNIT events

This commit is contained in:
andrew6180
2024-04-19 09:05:53 -07:00
parent a5d90d5ed9
commit 0b4c66e6a2
24 changed files with 17 additions and 313 deletions
@@ -13,12 +13,6 @@ local UnitPowerType = UnitPowerType
local POWERTYPE_ALTERNATE = 10
function NP:Power_UpdateColor(_, unit)
if unit and self.isNamePlate and unit:sub(1, 9) ~= "nameplate" then
local isUnit = self.unit and UnitIsUnit(self.unit, unit)
if isUnit then
unit = self.unit
end
end
if self.unit ~= unit then return end
local element = self.Power