View Single Post
01-17-14, 09:08 PM   #2
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Code:
local name, _, text = UnitCastingInfo(unit)
if not name then
	name, _, text = UnitChannelInfo(unit)
end
if not name then
	name = UnitName(unit)
end
return text or name
If there's a field for entering a list of events that should trigger an update (I don't use Stuf) it needs to include:
  • UNIT_NAME
  • UNIT_SPELLCAST_START
  • UNIT_SPELLCAST_STOP
  • UNIT_SPELLCAST_CHANNEL_START
  • UNIT_SPELLCAST_CHANNEL_STOP
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote