Libs/oUF: Nameplates now have native UNIT events
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user