From c5cd1d2f7f88ccde5f9a32de3a710c84f2a4fc32 Mon Sep 17 00:00:00 2001 From: Flamanis Date: Wed, 9 Oct 2024 18:22:08 -0500 Subject: [PATCH] Fix issues with UnitIdCache.Party --- core/parser.lua | 4 ++-- core/util.lua | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/parser.lua b/core/parser.lua index c95bee443..74394fe6a 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 @@ -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) 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