I made this minimal example and tested it with a new SUF profile ("Enable frequent updates" checked and "Update interval" set to 0).
function(unit, unitOwner) if not sufTagRangeInvocations then sufTagRangeInvocations = 0 end sufTagRangeInvocations = sufTagRangeInvocations + 1 return string.format("%d", sufTagRangeInvocations / 60) end
I'd expect it to display a number that is incremented from 0 roughly every second (at 60 fps) while the tag is shown on some frame. What actually happens is that (after UI reload, login, etc.) the text won't change at all on it's own (when I display it on my target and change targets a lot it will eventually increment). This apparently can be fixed by changing the tags code in some (cosmetic) way and saving it again (until the next UI reload).
I took a very crude look at
tags.lua and found that, when I invoke
updateMinimumFrequency() manually from within the game (after having removed the
local keyword from it's declaration), the tag starts working as expected.
I'm using version 3.8.9.
Hope you got time to look into this and thanks for developing this great addon, Meribold
- 2 comments