Do not -1 GetNumGroupMembers, party UnitIdCache includes player.

This commit is contained in:
andrew6180
2024-09-08 11:06:34 -07:00
parent f15230096d
commit 14f904a832
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -5173,7 +5173,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
@@ -6258,7 +6258,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)