Question :
I've been trying to nick p3lim's AFK function and use that tag as base for a few of my own. I'm having some issues understanding a few things.
1.
Code:
self:Tag(name, '[name( )][leader( )][offline( )][afk( )]|cff00ffff[(- )assistname( )][assisticon]')
Why the () and what is their function?
2.
Code:
oUF.Tags["[pws]"] = function(u) return UnitAura(u, "Power Word: Shield") and "PwS" end
oUF.TagEvents["[pws]"] = "UNIT_AURA"
Is this corrert? All I did here was change some stuff without really understanding though LOL