WoWInterface - View Single Post - Highlighting lifebloom with pandemic
View Single Post
06-04-18, 12:52 PM   #12
A Fallenroot Satyr
Join Date: May 2007
Posts: 23
Originally Posted by Ammako View Post
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 View Post
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:
  1. local buffName, _, icon, count, debuffType, duration, expirationTime, caster, canStealOrPurge, nameplateShowPersonal, spellId, canApplyAura, isBossDebuff, casterIsPlayer, nameplateShowAll, timeMod, _ = UnitBuff(unit, index, filter)

Last edited by tehmoku : 06-04-18 at 01:00 PM.
  Reply With Quote