From de7f9844254641fc7eaae52ba759ac792b0f30bf Mon Sep 17 00:00:00 2001 From: Tercio Jose Date: Tue, 22 Nov 2022 22:40:51 -0300 Subject: [PATCH] lib Open Raid updated --- Libs/LibOpenRaid/GetPlayerInformation.lua | 5 +++++ Libs/LibOpenRaid/LibOpenRaid.lua | 21 ++++++++++++++++++--- 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/Libs/LibOpenRaid/GetPlayerInformation.lua b/Libs/LibOpenRaid/GetPlayerInformation.lua index 23a7e0b6..cd792206 100644 --- a/Libs/LibOpenRaid/GetPlayerInformation.lua +++ b/Libs/LibOpenRaid/GetPlayerInformation.lua @@ -600,6 +600,11 @@ end local getAuraDuration = function(spellId) --some auras does not have the same spellId of the cast as the spell for its aura duration --in these cases, it's necessary to declare the buff spellId which tells the duration of the effect by adding 'durationSpellId = spellId' within the cooldown data + if (not LIB_OPEN_RAID_PLAYERCOOLDOWNS[spellId]) then + --local spellname = GetSpellInfo(spellId) + --print("spell not found:", spellname) + return 0 + end local customBuffDuration = LIB_OPEN_RAID_PLAYERCOOLDOWNS[spellId].durationSpellId --spellId = customBuffDuration or spellId --can't replace the spellId by customBuffDurationSpellId has it wount be found in LIB_OPEN_RAID_PLAYERCOOLDOWNS diff --git a/Libs/LibOpenRaid/LibOpenRaid.lua b/Libs/LibOpenRaid/LibOpenRaid.lua index 8c6ba360..a74533ea 100644 --- a/Libs/LibOpenRaid/LibOpenRaid.lua +++ b/Libs/LibOpenRaid/LibOpenRaid.lua @@ -64,7 +64,7 @@ if (WOW_PROJECT_ID ~= WOW_PROJECT_MAINLINE and not isExpansion_Dragonflight()) t end local major = "LibOpenRaid-1.0" -local CONST_LIB_VERSION = 76 +local CONST_LIB_VERSION = 77 LIB_OPEN_RAID_CAN_LOAD = false local unpack = table.unpack or _G.unpack @@ -821,6 +821,8 @@ end delayedTalentChange() end, + --SPELLS_CHANGED + ["PLAYER_PVP_TALENT_UPDATE"] = function(...) openRaidLib.internalCallback.TriggerEvent("pvpTalentUpdate") end, @@ -921,7 +923,7 @@ end eventFrame:RegisterEvent("ENCOUNTER_END") eventFrame:RegisterEvent("CHALLENGE_MODE_START") eventFrame:RegisterEvent("CHALLENGE_MODE_COMPLETED") - --eventFrame:RegisterEvent("PLAYER_SPECIALIZATION_CHANGED") + eventFrame:RegisterEvent("PLAYER_SPECIALIZATION_CHANGED") eventFrame:RegisterEvent("TRAIT_CONFIG_UPDATED") end end @@ -2560,4 +2562,17 @@ C_Timer.After(0.1, function() end) end) -tempCache.RestoreData() \ No newline at end of file +tempCache.RestoreData() + + +--[=[ +3x ...ns/Details/Libs/LibOpenRaid/GetPlayerInformation.lua:603: attempt to index field '?' (a nil value) +[string "@Interface/AddOns/Details/Libs/LibOpenRaid/GetPlayerInformation.lua"]:634: in function `GetPlayerCooldownStatus' +[string "@Interface/AddOns/Details/Libs/LibOpenRaid/LibOpenRaid.lua"]:1696: in function `CleanupCooldownTickers' +[string "@Interface/AddOns/Details/Libs/LibOpenRaid/LibOpenRaid.lua"]:1925: in function <...face/AddOns/Details/Libs/LibOpenRaid/LibOpenRaid.lua:1924> +[string "=[C]"]: in function `xpcall' +[string "@Interface/AddOns/Details/Libs/LibOpenRaid/LibOpenRaid.lua"]:506: in function <...face/AddOns/Details/Libs/LibOpenRaid/LibOpenRaid.lua:496> + + + +]=] \ No newline at end of file