Fix for an error when starting a boss encounter on Wrath

This commit is contained in:
Tercio Jose
2024-01-22 09:29:37 -03:00
parent 3298663488
commit cce2584e74
+13 -11
View File
@@ -5781,8 +5781,19 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1
wipe(keystoneLevels)
local libOpenRaid = LibStub("LibOpenRaid-1.0", true)
for i = 1, GetNumGroupMembers()-1 do
local unitId = "party" .. i
if (libOpenRaid) then
for i = 1, GetNumGroupMembers()-1 do
local unitId = "party" .. i
if (UnitExists(unitId)) then
local unitKeystoneInfo = libOpenRaid.GetKeystoneInfo(unitId)
if (unitKeystoneInfo) then
local unitName = Details:GetFullName(unitId)
keystoneLevels[unitName] = unitKeystoneInfo.level
end
end
end
local unitId = "player"
if (UnitExists(unitId)) then
local unitKeystoneInfo = libOpenRaid.GetKeystoneInfo(unitId)
if (unitKeystoneInfo) then
@@ -5791,15 +5802,6 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1
end
end
end
local unitId = "player"
if (UnitExists(unitId)) then
local unitKeystoneInfo = libOpenRaid.GetKeystoneInfo(unitId)
if (unitKeystoneInfo) then
local unitName = Details:GetFullName(unitId)
keystoneLevels[unitName] = unitKeystoneInfo.level
end
end
end
function Details222.CacheKeystoneForAllGroupMembers()