Alright, managed to write something like this:
Code:
oUF.Tags["[sacredshield]"] = function(u)
local i, string = 1, ""
-- name, rank, icon, count, debuffType, duration, expirationTime, unitCaster, isStealable = UnitAura("unit", index or ["name", "rank"][, "filter"])
local name, _, _, _, _, _, _, fromwho = UnitAura(u, i)
while name do
if name == "Sacred Shield" then
if fromwho == "player" then
string = string .. "|cffFFFF00.|r"
else
string = string .. "|cffCCCC00.|r"
end
end
i = i + 1;
name, _, _, _, _, _, _, fromwho = UnitAura(u, i)
end
return string
end
oUF.TagEvents["[sacredshield]"] = "UNIT_AURA"
I want to see when other paladins in my raid have buffed someone with sacred shield, now for my question: is this the effecient way to do it, or should I do it another way?
In what way will UnitAura handle multiple buffs with the same name?
PS: writing this for use with
oUF_Freebgrid