I also play Elemental shaman, so I was looking for a bar to track my Lightning Shield stacks. A user on MMOChampion posted a very good WA string which did exactly that. Sadly I don't have the source but here is the string I'm using. The bar fills up the more LS stacks you have and is filled completely at 20 stacks.
It's using custom LUA triggers to track the stacks. The important piece of code is in the "Duration Info" part:
Code: Select all
function()
local _,_,_,s = UnitBuff("player", 'Lightning Shield', nil, "PLAYER")
if not s then
s = 0
end
return s,20, function() return s,20 end
end
Of course I have no clue about LUA or about how custom triggers actually work.
How can I change this to track IF stacks correctly?