Hi, I'm trying to show a text with the total amount of absorbs on my target if I have a target, the string works but every time I switch target the game slows down from 100+fps to 10fps for a few seconds. I'm guessing there's something wrong somewhere.
custom function
Code:
function()
if UnitExists("target") then
local absorb = UnitGetTotalAbsorbs("target")
if absorb == 0 then
absorb = ""
end
return(math.floor(absorb/1000))
end
end
custom trigger
Code:
function()
if UnitExists("target") then
return true
end
end
edit: words