Merge pull request #750 from Flamanis/definition-exist

[LibOpenRaid] Add exist check for definition id
This commit is contained in:
Tercio Jose
2024-06-08 21:17:35 -03:00
committed by GitHub
+7 -5
View File
@@ -162,11 +162,13 @@ local getDragonflightTalentsAsIndexTable = function()
local definitionId = traitEntryInfo.definitionID
--definition info
local traitDefinitionInfo = C_Traits.GetDefinitionInfo(definitionId)
local spellId = traitDefinitionInfo.overriddenSpellID or traitDefinitionInfo.spellID
local spellName, _, spellTexture = GetSpellInfo(spellId)
if (spellName) then
allTalents[#allTalents+1] = spellId
if (definitionId) then
local traitDefinitionInfo = C_Traits.GetDefinitionInfo(definitionId)
local spellId = traitDefinitionInfo.overriddenSpellID or traitDefinitionInfo.spellID
local spellName, _, spellTexture = GetSpellInfo(spellId)
if (spellName) then
allTalents[#allTalents+1] = spellId
end
end
end
end