Update for Lib OpenRaid

This commit is contained in:
Tercio Jose
2023-12-14 15:03:05 -03:00
parent 1830359943
commit 298228ece4
+7 -1
View File
@@ -43,7 +43,7 @@ if (WOW_PROJECT_ID ~= WOW_PROJECT_MAINLINE and not isExpansion_Dragonflight()) t
end
local major = "LibOpenRaid-1.0"
local CONST_LIB_VERSION = 115
local CONST_LIB_VERSION = 116
if (LIB_OPEN_RAID_MAX_VERSION) then
if (CONST_LIB_VERSION <= LIB_OPEN_RAID_MAX_VERSION) then
@@ -2307,6 +2307,12 @@ function openRaidLib.CooldownManager.CheckForSpellsAdeedOrRemoved()
local playerName = UnitName("player")
local currentCooldowns = openRaidLib.CooldownManager.UnitData[playerName]
if (not currentCooldowns) then
--generate the list of cooldowns for the player
openRaidLib.CooldownManager.UpdatePlayerCooldownsLocally()
currentCooldowns = openRaidLib.CooldownManager.UnitData[playerName]
end
local _, newCooldownList = openRaidLib.CooldownManager.GetPlayerCooldownList()
local spellsAdded, spellsRemoved = {}, {}