View Single Post
04-07-09, 06:02 AM   #978
ravagernl
Proceritate Corporis
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 1,176
Originally Posted by demitri View Post
Code:
oUF.Tags["[beacon]"] = function(u) return UnitAura(u, "Beacon of Light") and "|cffFF5500.|r" or "" end

oUF.Tags["[shield]"] = function(u) return UnitAura(u, "Sacred Shield") and "|cffFFCF7F.|r" or "" end

oUF.TagEvents["[beacon]"] = "UNIT_AURA"
oUF.TagEvents["[shield]"] = "UNIT_AURA"
is the tags..
Code:
local name, rank, icon, count, debuffType, duration, expirationTime, isMine, isStealable = UnitAura("unit", index or ["name", "rank"][, "filter"])
Using select, that would be:
Code:
oUF.Tags["[beacon]"] = function(u) return select(8, UnitAura(u, "Beacon of Light")) and "|cffFF5500.|r" or "" end

oUF.Tags["[shield]"] = function(u) return select(8, UnitAura(u, "Sacred Shield")) and "|cffFFCF7F.|r" or "" end

oUF.TagEvents["[beacon]"] = "UNIT_AURA"
oUF.TagEvents["[shield]"] = "UNIT_AURA"
Correct me if I'm wong. Can you post where you put these tags by the way?

Last edited by ravagernl : 04-07-09 at 06:04 AM.