Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
763 B
2
Indexable
Never
hooksecurefunc("TargetFrame_UpdateAuras", function(self) 
    local isenemy = UnitIsPlayer(self.unit) and (not (UnitIsFriend("player", self.unit)))
    for i = 1, MAX_TARGET_BUFFS do
        local spellId = select(10, UnitBuff(self.unit, i, nil))
		if (UnitIsFriend("player", self.unit)) then return end
        if not spellId then break end
        local frame = self.Buff[i]
        
        if isenemy then
            if not frame.VremonInit then
                frame.VremonInit = true
                frame.Stealable:SetSize(21, 21)
                frame.Stealable:SetTexCoord(0.09,0.94,0.09,0.94)
            end
            if spelllist[spellId] then 
                frame.Stealable:Show()
				end
            
        end
	end	
end)