Quantcast
WoWInterface - View Single Post - Highlighting lifebloom with pandemic
View Single Post
06-02-18, 07:49 AM   #7
Sylen
A Cyclonian
AddOn Author - Click to view addons
Join Date: Jan 2011
Posts: 48
Did you make progress on this topic? For the glow effect people usually use this code:

Lua Code:
  1. --Highlight Purgable Buffs on Target and Focus
  2. hooksecurefunc("TargetFrame_UpdateAuras", function(s)
  3.     for i = 1, MAX_TARGET_BUFFS do
  4.         _, _, ic, _, dT = UnitBuff(s.unit, i)
  5.         if(ic and (not s.maxBuffs or i<=s.maxBuffs)) then
  6.             fS=_G[s:GetName()..'Buff'..i..'Stealable']
  7.             if(UnitIsEnemy(PlayerFrame.unit, s.unit) and dT=='Magic') then
  8.                 fS:Show()
  9.             else
  10.                 fS:Hide()
  11.             end
  12.         end
  13.     end
  14. end)
  Reply With Quote