hello there, have a lil question about progress bar.
i have my progress bar for Ancestral Vigor viewed on me, but i cant understand, how to make it do not calculate this buff.
example:
i have 400k hp, buff gives me 40k more, and my bar grows up for this 10% and max bar now 440k. How i can calculate w/o this buff?
sorry for my bad english:
here my code for that progress bar:
Code:
function ()
local name,_,icon,_,_,_,_,_,_,_,_,_,_,_,value=UnitBuff("player", "Ancestral Vigor")
if not value then
value = 0
end
local maxValue = (UnitHealthMax("player")-value)*0.10
return value, maxValue, true
end
i need to get maxValue w/o buff Ancestral Vigor, how i must to do this.
sorry for my bad english.