The following code is what i use to indicate buffs, same effect as Power Aura. Could anyone help me modify it? I want it to show effect only when specified buff stacks more than 1 time. Thanks a lot Hope my English works. haha
PSF=CreateFrame("FRAME")
PSF:RegisterEvent("UNIT_AURA");
PSF:SetScript('OnEvent',function()
o=0
for i=1,40 do
_,_,_,_,_,_,_,_,_,_,id=UnitAura("Player",i)
if id==117828 then SpellActivationOverlay_ShowOverlay
(SpellActivationOverlayFrame,117828,"TEXTURES\\SPELLACTIVATIONOVERLAYS\\molten_core.
BLP","LEFT",1,255,255,255,false,false)
o=1
end
end
if o==0 then SpellActivationOverlay_HideOverlays(SpellActivationOverlayFrame,117828)
end
end)