From de2dded3b0faa958fbee87603295f596cc23922c Mon Sep 17 00:00:00 2001 From: Tercio Jose Date: Fri, 22 Apr 2022 15:00:14 -0300 Subject: [PATCH] Fix for the Raid Check plugin using old calls from the open raid library --- Libs/LibOpenRaid/docs.txt | 6 ++++++ plugins/Details_RaidCheck/Details_RaidCheck.lua | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Libs/LibOpenRaid/docs.txt b/Libs/LibOpenRaid/docs.txt index 1d8ac887..44c7d583 100644 --- a/Libs/LibOpenRaid/docs.txt +++ b/Libs/LibOpenRaid/docs.txt @@ -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) diff --git a/plugins/Details_RaidCheck/Details_RaidCheck.lua b/plugins/Details_RaidCheck/Details_RaidCheck.lua index 3342afce..499c0265 100644 --- a/plugins/Details_RaidCheck/Details_RaidCheck.lua +++ b/plugins/Details_RaidCheck/Details_RaidCheck.lua @@ -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