Wrath error fixes

This commit is contained in:
Tercio Jose
2022-11-27 18:35:35 -03:00
parent ebe8c496d1
commit eb60b77c32
6 changed files with 22 additions and 10 deletions
+3 -4
View File
@@ -5332,13 +5332,12 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1
end
--tag item level of all players
local openRaidLib = LibStub:GetLibrary("LibOpenRaid-1.0")
local allUnitsInfo = openRaidLib.GetAllUnitsInfo()
local allPlayersGear = openRaidLib.GetAllUnitsGear()
local openRaidLib = LibStub:GetLibrary("LibOpenRaid-1.0", true)
local allPlayersGear = openRaidLib and openRaidLib.GetAllUnitsGear()
local status = xpcall(function()
for actorIndex, actorObject in Details:GetCurrentCombat():GetContainer(DETAILS_ATTRIBUTE_DAMAGE):ListActors() do
local gearInfo = allPlayersGear[actorObject:Name()]
local gearInfo = allPlayersGear and allPlayersGear[actorObject:Name()]
if (gearInfo) then
actorObject.ilvl = gearInfo.ilevel
end