Skip to content

Commit

Permalink
Fix for an error when starting a boss encounter on Wrath
Browse files Browse the repository at this point in the history
  • Loading branch information
Tercioo committed Jan 22, 2024
1 parent 3298663 commit cce2584
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions core/parser.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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()
Expand Down

0 comments on commit cce2584

Please sign in to comment.