How would I go about getting the source of a spell (IE Dark Intent) on a Progress Bar?
I want the text on the progress bar to read something like "%n (%source)" (example: "Dark Intent (Billy)").
You mean the caster of the spell? There is no way to do that at the moment, but it's an interesting idea. I'll try to think of ways it can be implemented.
Yep, that's what I meant :(
I suppose you could use a "%c" custom text and then define Custom Text Function such as this:
local _, _, _, _, _, _, _, unitCaster = UnitBuff("player", "Dark Intent");
return UnitName(unitCaster or "") or "unknown";
That would be rather inefficient, though, since Custom Text Functions currently update every frame, and UnitAura calls are fairly heavy.
You must login to post a comment. Don't have an account? Register to get one!