This is where you can use PostUpdate, instead of an override function or writing a separate element.
Lua Code:
local function HealPostUpdate = function(hp, unit)
if(hp.absorbBar:GetValue() > 0) then
hp.absorbBar:ClearAllPoints()
hp.absorbBar:SetPoint('TOP')
hp.absorbBar:SetPoint('BOTTOM')
if(hp.healAbsorbBar:GetValue() > 0) then
hp.absorbBar:SetPoint('LEFT', hp.healAbsorbBar:GetStatusBarTexture(), 'RIGHT')
else
hp.absorbBar:SetPoint('LEFT', hp.otherBar:GetStatusBarTexture(), 'RIGHT')
end
end
end
Lua Code:
...
self.HealPrediction.PostUpdate = HealPostUpdate