Update for Lib OpenRaid
This commit is contained in:
@@ -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 = {}, {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user