General fixes

This commit is contained in:
Tercio Jose
2021-01-21 17:52:08 -03:00
parent 778e02b583
commit af14e08106
6 changed files with 227 additions and 7 deletions
+1 -1
View File
@@ -539,7 +539,7 @@ function Details.Coach.WelcomePanel()
hasAssistantsTexture:SetTexCoord(0, 0.5, 0, 0.5)
end
local isInCorrectGroup = false
local isInCorrectGroup = true --debug
for i = 1, numRaidMembers do
local name, rank, subgroup, level, class, fileName, zone, online, isDead, role, isML = GetRaidRosterInfo(i)
if (name == playerName) then
+5 -3
View File
@@ -461,9 +461,11 @@ function Details.packFunctions.PackDamage(combatObject)
local allPlayerNames = {}
for i = 1, 20 do
local name, _, subgroup = GetRaidRosterInfo(i)
name = Ambiguate(name, "none")
if (name and subgroup <= 4) then
tinsert(allPlayerNames, name)
if (name) then --maybe the group has less than 20 players
name = Ambiguate(name, "none")
if (name and subgroup <= 4) then
tinsert(allPlayerNames, name)
end
end
end
table.sort(allPlayerNames, function(t1, t2) return t1 < t2 end)