Fix for the Raid Check plugin using old calls from the open raid library

This commit is contained in:
Tercio Jose
2022-04-22 15:00:14 -03:00
parent 694b52ddc4
commit de2dded3b0
2 changed files with 8 additions and 2 deletions
+6
View File
@@ -102,6 +102,12 @@ Callbacks:
===================================================================================================================================
function MyAddonObject.OnReceiveCooldownListUpdate(unitId, unitCooldows, allUnitsCooldowns)
--regular iteration among the group
for i = 1, GetNumGroupMembers() do
local unitId = "raid"..i
local thisUnitCooldowns = openRaidLib.GetUnitCooldowns(unitId, "defensive-raid, defensive-target")
end
--using the 'unitCooldows' table passed for the updated unit
for spellId, cooldownInfo in pairs(unitCooldows) do
local isReady, timeLeft, charges, normalizedPercent, minValue, maxValue, currentValue = openRaidLib.GetCooldownStatusFromCooldownInfo(cooldownInfo)
@@ -382,8 +382,8 @@ end
local openRaidLib = LibStub:GetLibrary("LibOpenRaid-1.0")
--get the information of all players
local playersInfoData = openRaidLib.playerInfoManager.GetAllPlayersInfo()
local playersGearData = openRaidLib.gearManager.GetAllPlayersGear()
local playersInfoData = openRaidLib.GetAllUnitsInfo()
local playersGearData = openRaidLib.GetAllUnitsGear()
for i = 1, total_lines do
local index = i + offset