diff --git a/core/parser.lua b/core/parser.lua index b1cbc4024..1bda3948d 100755 --- a/core/parser.lua +++ b/core/parser.lua @@ -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 @@ -6954,7 +6954,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) diff --git a/core/util.lua b/core/util.lua index 6a74e3ca6..6a47b75cc 100644 --- a/core/util.lua +++ b/core/util.lua @@ -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