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.
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:
i need to get maxValue w/o buff Ancestral Vigor, how i must to do this.
local name,_,icon,_,_,_,_,_,_,_,_,_,_,_,value=UnitBuff("player", "Ancestral Vigor")
if not value then
value = 0
local maxValue = UnitHealthMax("player")*0.10
return value, maxValue, true
sorry for my bad english.