LibOpenRaid update

This commit is contained in:
Tercio Jose
2022-09-14 22:11:34 -03:00
parent 666b643875
commit b91ba87254
2 changed files with 8 additions and 4 deletions
+7 -3
View File
@@ -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}
+1 -1
View File
@@ -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