Fix for the Raid Check plugin using old calls from the open raid library
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user