diff --git a/boot.lua b/boot.lua index e97d593fe..a0329579f 100644 --- a/boot.lua +++ b/boot.lua @@ -4,8 +4,8 @@ _ = nil _detalhes = LibStub("AceAddon-3.0"):NewAddon("_detalhes", "AceTimer-3.0", "AceComm-3.0", "AceSerializer-3.0", "NickTag-1.0") - _detalhes.build_counter = 8101 - _detalhes.alpha_build_counter = 8101 --if this is higher than the regular counter, use it instead + _detalhes.build_counter = 8102 + _detalhes.alpha_build_counter = 8102 --if this is higher than the regular counter, use it instead _detalhes.game_version = "v9.0.2" _detalhes.userversion = "v9.0.2." .. _detalhes.build_counter _detalhes.realversion = 144 --core version, this is used to check API version for scripts and plugins (see alias below) diff --git a/functions/coach.lua b/functions/coach.lua index 0b067d73a..a56fffb5d 100644 --- a/functions/coach.lua +++ b/functions/coach.lua @@ -503,7 +503,7 @@ function Details.Coach.WelcomePanel() end end - if (IsInRaid() and numRaidMembers == sameGuildAmount) then + if (IsInRaid()) then -- and numRaidMembers == sameGuildAmount isLeaderTexture:SetTexture([[Interface\COMMON\Indicator-Green]]) isLeaderTexture:SetTexCoord(0, 1, 0, 1) good = good + 1 @@ -585,6 +585,7 @@ function Details.Coach.WelcomePanel() if (updatedUsers >= numRaidMembers) then allUsersUpdated = true end + allUsersUpdated = true if (allUsersUpdated) then allUpdatedTexture:SetTexture([[Interface\COMMON\Indicator-Green]]) diff --git a/functions/pack.lua b/functions/pack.lua index c67c01148..df47c23e4 100644 --- a/functions/pack.lua +++ b/functions/pack.lua @@ -460,14 +460,13 @@ function Details.packFunctions.PackDamage(combatObject) local allPlayerNames = {} for i = 1, 20 do - local unitName = UnitName("raid" .. i) - local _, _, subgroup = GetRaidRosterInfo(i) - - if (unitName and subgroup <= 4) then - allPlayerNames[#allPlayerNames+1] = unitName + local name, _, subgroup = GetRaidRosterInfo(i) + name = Ambiguate(name, "none") + if (name and subgroup <= 4) then + tinsert(allPlayerNames, name) end end - table.sort(allPlayerNames, DetailsFramework.SortOrder1R) + table.sort(allPlayerNames, function(t1, t2) return t1 < t2 end) local playerName = UnitName("player") for i = 1, #allPlayerNames do