Fix for an error when starting a boss encounter on Wrath
This commit is contained in:
+13
-11
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user