Made this for you. Code if anyone is interested:
Code:
local absorbSpells = {
["Ice Barrier"]=1,
["Power Word: Shield"]=1,
["Divine Aegis"]=1,
["Mana Shield"]=1,
["Sacrifice"]=1,
["Illuminated Healing"]=1,
["Sacred Shield"]=1,
["Savage Defense"]=1,
}
local o_UnitHealth = UnitHealth
function UnitHealth(...)
local health = o_UnitHealth(...)
for spellName,valueNum in pairs(absorbSpells) do
local value = select(13+valueNum, UnitAura((...),spellName))
if value then
--print(spellName,"amount:",value)
health = health+value
end
end
return health
end
local o_UnitHealthMax = UnitHealthMax
function UnitHealthMax(...)
return math.max((o_UnitHealthMax(...)),(UnitHealth(...)))
end
PS: Folder name needs to come before your first unit health using-addon in the alphabet. Preferably something with exclamation marks.