Skip to content

Commit

Permalink
Merge pull request #842 from Flamanis/master
Browse files Browse the repository at this point in the history
Fix issues with UnitIdCache.Party
  • Loading branch information
Tercioo authored Oct 9, 2024
2 parents bdf1e05 + c5cd1d2 commit 2b1f591
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions core/parser.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5772,7 +5772,7 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1

elseif (IsInGroup()) then
local unitIdCache = Details222.UnitIdCache.Party
for i = 1, 4 do
for i = 1, 5 do
local unitId = unitIdCache[i]
local guid = UnitGUID(unitId)
if (guid) then
Expand Down Expand Up @@ -6953,7 +6953,7 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1

elseif (IsInGroup()) then
local unitIdCache = Details222.UnitIdCache.Party
for i = 1, GetNumGroupMembers()-1 do
for i = 1, GetNumGroupMembers() do
local unitId = unitIdCache[i]

local unitName = GetUnitName(unitId, true)
Expand Down
2 changes: 1 addition & 1 deletion core/util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1288,7 +1288,7 @@ end

elseif (IsInGroup()) then
local unitIdCache = Details222.UnitIdCache.Party
for i = 1, GetNumGroupMembers()-1, 1 do
for i = 1, GetNumGroupMembers(), 1 do
if (UnitAffectingCombat(unitIdCache[i])) then
return true
end
Expand Down

0 comments on commit 2b1f591

Please sign in to comment.