Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function()
- -- BLOOD SHIELD VALUE FUNCTION
- WA_GetBS = WA_GetBS or function()
- -- Check for Blood Shield
- local name = select(1, UnitAura("player", "Blood Shield"));
- -- If exists then check value
- if name then
- -- Query stack count and scan tooltip for "size" info
- local count = select(4, UnitAura("player", "Blood Shield"));
- local size = select(3, WeakAuras.GetAuraTooltipInfo("player", name, nil))
- -- Return either size, count, or 0
- return size and size ~= 0 and size or count or 0;
- -- No buff
- else
- return 0;
- end
- end
- -- ***************************
- -- Create local value variables
- local bs = WA_GetBS();
- -- Divide by 1k
- local bsK = bs/1000
- -- Format return text
- WA_BS_Return = string.format("%.0fK", bsK);
- -- Return the text!
- return WA_BS_Return or "0";
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement