I'm using a dynamic group to show the progress remaining for PW:S, spirit shell, and divine aegis. I'm using multi-target buff with only tracking my spells. The problem I was having at first was that it would only show the time remaining on my shields, not the actual absorb amounts. Then in a moment of genius I decided to frankenstein in one of the weak aura strings for my brewmaster monk I got from sunniers art of war. It tracks the absortion amount of guard. So after a couple quick changes from "player" to "targer" and "guard" to the spells mentioned above, I ended up with this:
Now if you're reading this and know any LUA at all you will say wait, that should work! And you would be right - it does work. I am looking for help because it is not exactly as I would like. The only way to update the absorb amount remaining is to click back on something that already has my shield.function ()
local name,_,icon,_,_,_,_,_,_,_,_,_,_,_,value=UnitBuff("target", "Power Word: Shield")
if(value > 999999) then value = math.floor(value/1000000) .. "m"
elseif(value > 999) then value = math.floor(value/1000) .. "k" end
return(value)
end
My question: is there a way to have it automatically update the absorb left on my shields? I had thought of maybe changing the "target" function to possible "unitisvisible" after but I have no idea how to do that or if it would even work. I would just like it to update the absorb amount without me having to click back on all the units that would have my shields.
Thanks for any and all help