Skip to content

Commit

Permalink
More fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Tercioo committed Dec 22, 2020
1 parent c8f090c commit 38f66a2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions boot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 2 additions & 1 deletion functions/coach.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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]])
Expand Down
11 changes: 5 additions & 6 deletions functions/pack.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 38f66a2

Please sign in to comment.