Hello dear community
I have a question about how to modify script below to show flashy icons only on those spellIDs
(49016,52610,5229,34692,19574,18499)
Code:
if UnitClass("player")=="Rogue"then
hooksecurefunc("TargetFrame_UpdateAuras", function(s)
for i = 1, MAX_TARGET_BUFFS do
_, _, ic, _, dT = UnitBuff(s.unit, i)
if(ic and (not s.maxBuffs or i<=s.maxBuffs)) then
fS=_G[s:GetName()..'Buff'..i..'Stealable']
if(UnitIsEnemy(PlayerFrame.unit, s.unit) and dT=='Magic') then
fS:Show()
else
fS:Hide()
end
end
end
end)
end
Thanks you for any help!