Yatabar

Yatabar

35.8k Downloads

With the latest Github build Yatabar is completely gone

keolwyn opened this issue ยท 2 comments

commented

With the last Github build Yatabar is completely gone from the screen on my level 27 shaman.

(bar should be inside the red square)
Screenshot_11

I believe that reason for this is the following:

in GetTotemSpellsByElement() (line 621) function you are checking if there are any totems for the certain element

if Yatabar.totemsFound[element] == false then
    if Yatabar.config.debugOn then
        Yatabar:AddDebugText("GetTotemSpellsByElement: skip element:"..element)
    end
    print("GetTotemSpellsByElement: skip element:"..element)
    break
end

But, if you check totemsFound table through the stack output, you could see that the first element is actually an AIR

Screenshot_12

and there are no air totems on level 27, so the function will break, skip the rest of the code, and don't get any info about the rest totems. The simple fix is to remove the break statement and the bar is back.

Screenshot_4

commented

Hey, yes, you are right, the break is wrong there, it had written this quickly

commented

No worries, great addon, thanks for your work :)