Originally Posted by Ammako
If you wanted (needed?) it to update every frame, wouldn't it be easier to just hook TargetFrame_OnUpdate and CompactUnitFrame_OnUpdate?
|
Yeah, I don't want to actually run it OnUpdate. That's entirely too demanding for this. I was hoping there was a more elegant solution that someone else may be able to tell me.
I was hooking buffFrame to OnUpdate, and it worked well, but it was just too much considering it only really needs to be a fraction of that for 30% of the time a single buff is active.
Although I'm unconvinced--maybe in practice there's enough UNIT_AURA events firing that it won't be a real issue, but if not I'll go back to OnUpdate if needed.
Originally Posted by pegasu8
Can you post a working script which also works in Legion still?
|
Yes, change lines 7/8 and 36/37 in the code to this
Lua Code:
local buffName, _, icon, count, debuffType, duration, expirationTime, caster, canStealOrPurge, nameplateShowPersonal, spellId, canApplyAura, isBossDebuff, casterIsPlayer, nameplateShowAll, timeMod, _ = UnitBuff(unit, index, filter)