Skip to content

Commit

Permalink
fix 10+ bot layout
Browse files Browse the repository at this point in the history
Co-Authored-By: ike3 <[email protected]>
  • Loading branch information
celguar and ike3 committed Dec 13, 2023
1 parent 0591741 commit 386ecfa
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Mangosbot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2928,7 +2928,7 @@ Mangosbot_EventFrame:SetScript("OnEvent", function(self)
y = y + (5 + height)
end

if (GetNumRaidMembers() > 10) then
if (botCount() >= 10) then
y = 230
end

Expand Down Expand Up @@ -3458,4 +3458,10 @@ function partySize()
return r
end

function botCount()
local count = 0
for _ in pairs(botTable) do count = count + 1 end
return count
end

print("MangosBOT Addon is loaded");

0 comments on commit 386ecfa

Please sign in to comment.