From aa1b97b4c90c86caf5dd499b24fa6162314fd65f Mon Sep 17 00:00:00 2001 From: Tercio Jose Date: Sun, 24 Apr 2022 11:32:24 -0300 Subject: [PATCH] Fixed an issue with lib open raid --- Libs/LibOpenRaid/LibOpenRaid.lua | 5 ++--- frames/window_cdtracker.lua | 2 -- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/Libs/LibOpenRaid/LibOpenRaid.lua b/Libs/LibOpenRaid/LibOpenRaid.lua index eb1791e0f..a91153326 100644 --- a/Libs/LibOpenRaid/LibOpenRaid.lua +++ b/Libs/LibOpenRaid/LibOpenRaid.lua @@ -34,7 +34,7 @@ TODO: local major = "LibOpenRaid-1.0" -local CONST_LIB_VERSION = 30 +local CONST_LIB_VERSION = 31 LIB_OPEN_RAID_CAN_LOAD = false --declae the library within the LibStub @@ -561,8 +561,7 @@ LIB_OPEN_RAID_CAN_LOAD = false openRaidLib.eventFunctions = eventFunctions eventFrame:RegisterEvent("GROUP_ROSTER_UPDATE") - eventFrame:RegisterUnitEvent("UNIT_SPELLCAST_SUCCEEDED", "player") - eventFrame:RegisterUnitEvent("UNIT_SPELLCAST_SUCCEEDED", "pet") + eventFrame:RegisterUnitEvent("UNIT_SPELLCAST_SUCCEEDED", "player", "pet") eventFrame:RegisterEvent("PLAYER_ENTERING_WORLD") eventFrame:RegisterEvent("PLAYER_REGEN_DISABLED") eventFrame:RegisterEvent("PLAYER_REGEN_ENABLED") diff --git a/frames/window_cdtracker.lua b/frames/window_cdtracker.lua index fb05fafb0..97156c977 100644 --- a/frames/window_cdtracker.lua +++ b/frames/window_cdtracker.lua @@ -259,8 +259,6 @@ end --player local unitCooldowns = openRaidLib.GetUnitCooldowns("player", filter) - local cooldownInfo = unitCooldowns[15286] - local isReady, normalizedPercent, timeLeft, charges, minValue, maxValue, currentValue = openRaidLib.GetCooldownStatusFromCooldownInfo(cooldownInfo) Details.CooldownTracking.ProcessUnitCooldowns("player", unitCooldowns, cooldownsOrganized) else