View Single Post
04-24-18, 11:37 AM   #7
Rainrider
A Firelord
AddOn Author - Click to view addons
Join Date: Nov 2008
Posts: 454
Use buffs.PreUpdate to reset buffs.bolster.
Increment buffs.bolster and return false in your custom filter for every spellID == 209859.
Use buffs.PostUpdate to set the stacks and display your icon.

The problem here is if you try to display an aura oUF has not yet created a button for, so you will have to override buff.CreateIcon and call it.

Another solution would be to return true for the first bolster buff you encounter in your custom filter and save the index for it. Return false for all bolster buffs afterwards to hide them. Then in buffs.PostUpdate just update the buff button at the index you saved previously. This won't work if you use sort your buffs.
  Reply With Quote