It looks like the unit argument to SetUnitAura is nil. Which would mean, from oUF/elements/auras.lua, 'self.parent:GetParent().unit' is nil (self is the aura button, self.parent is the auras frame, and self.parent:GetParent() should be the unit frame itself).
You parent your buff frame to self.Health (self in this case is your unit frame), so the :GetParent() call above is returning the Health element rather than the unit frame.
The easiest temp fix would be to change self.parent.GetParent().unit to self.parent.__owner.unit in auras.lua.
|