diff --git a/Libs/LibOpenRaid/GetPlayerInformation.lua b/Libs/LibOpenRaid/GetPlayerInformation.lua index 76433e99..b702fe1f 100644 --- a/Libs/LibOpenRaid/GetPlayerInformation.lua +++ b/Libs/LibOpenRaid/GetPlayerInformation.lua @@ -42,9 +42,13 @@ function openRaidLib.GetTalentVersion() end end -local getDradonflightTalentsAsIndexTable = function() +local getDragonflightTalentsAsIndexTable = function() local allTalents = {} local configId = C_ClassTalents.GetActiveConfigID() + if (not configId) then + return allTalents + end + local configInfo = C_Traits.GetConfigInfo(configId) for treeIndex, treeId in ipairs(configInfo.treeIDs) do @@ -85,7 +89,7 @@ function openRaidLib.UnitInfoManager.GetPlayerTalentsAsPairsTable() local talentVersion = openRaidLib.GetTalentVersion() if (talentVersion == CONST_TALENT_VERSION_DRAGONFLIGHT) then - local allTalents = getDradonflightTalentsAsIndexTable() + local allTalents = getDragonflightTalentsAsIndexTable() for i = 1, #allTalents do local spellId = allTalents[i] talentsPairs[spellId] = true @@ -111,7 +115,7 @@ function openRaidLib.UnitInfoManager.GetPlayerTalents() local talentVersion = openRaidLib.GetTalentVersion() if (talentVersion == CONST_TALENT_VERSION_DRAGONFLIGHT) then - talents = getDradonflightTalentsAsIndexTable() + talents = getDragonflightTalentsAsIndexTable() elseif (talentVersion == CONST_TALENT_VERSION_LEGION) then talents = {0, 0, 0, 0, 0, 0, 0} diff --git a/Libs/LibOpenRaid/LibOpenRaid.lua b/Libs/LibOpenRaid/LibOpenRaid.lua index 68d1b133..b24a591c 100644 --- a/Libs/LibOpenRaid/LibOpenRaid.lua +++ b/Libs/LibOpenRaid/LibOpenRaid.lua @@ -54,7 +54,7 @@ if (WOW_PROJECT_ID ~= WOW_PROJECT_MAINLINE and not IsDragonflight()) then end local major = "LibOpenRaid-1.0" -local CONST_LIB_VERSION = 50 +local CONST_LIB_VERSION = 51 LIB_OPEN_RAID_CAN_LOAD = false --declae the library within the LibStub