Skip to content

Commit

Permalink
Update for Lib OpenRaid
Browse files Browse the repository at this point in the history
  • Loading branch information
Tercioo committed Dec 14, 2023
1 parent 1830359 commit 298228e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Libs/LibOpenRaid/LibOpenRaid.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 = {}, {}

Expand Down

0 comments on commit 298228e

Please sign in to comment.