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