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
@@ -12,12 +12,6 @@ local UnitIsConnected = UnitIsConnected
local CreateFrame = CreateFrame
function NP:Health_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 not unit or self.unit ~= unit then return end
local element = self.Health