diff --git a/Libs/LibOpenRaid/GetPlayerInformation.lua b/Libs/LibOpenRaid/GetPlayerInformation.lua index 697e20e3..76811e70 100644 --- a/Libs/LibOpenRaid/GetPlayerInformation.lua +++ b/Libs/LibOpenRaid/GetPlayerInformation.lua @@ -504,12 +504,30 @@ local getSpellListAsHashTableFromSpellBook = function() local tabEnd = offset + numSpells for entryOffset = offset, tabEnd - 1 do local spellType, spellId = GetSpellBookItemInfo(entryOffset, "player") - if (spellId and LIB_OPEN_RAID_COOLDOWNS_INFO[spellId] and LIB_OPEN_RAID_COOLDOWNS_INFO[spellId].raceid and LIB_OPEN_RAID_COOLDOWNS_INFO[spellId].raceid[playerRaceId]) then - spellId = C_SpellBook.GetOverrideSpell(spellId) - local spellName = GetSpellInfo(spellId) - local bIsPassive = IsPassiveSpell(spellId, "player") - if (spellName and not bIsPassive) then - completeListOfSpells[spellId] = true + local spellInfo = LIB_OPEN_RAID_COOLDOWNS_INFO[spellId] + if (spellInfo) then + local raceId = spellInfo.raceid + if (raceId) then + if (type(raceId) == "table") then + if (raceId[playerRaceId]) then + spellId = C_SpellBook.GetOverrideSpell(spellId) + local spellName = GetSpellInfo(spellId) + local bIsPassive = IsPassiveSpell(spellId, "player") + if (spellName and not bIsPassive) then + completeListOfSpells[spellId] = true + end + end + + elseif (type(raceId) == "number") then + if (raceId == playerRaceId) then + spellId = C_SpellBook.GetOverrideSpell(spellId) + local spellName = GetSpellInfo(spellId) + local bIsPassive = IsPassiveSpell(spellId, "player") + if (spellName and not bIsPassive) then + completeListOfSpells[spellId] = true + end + end + end end end end diff --git a/Libs/LibOpenRaid/LibOpenRaid.lua b/Libs/LibOpenRaid/LibOpenRaid.lua index 5c88d581..e75f55ff 100644 --- a/Libs/LibOpenRaid/LibOpenRaid.lua +++ b/Libs/LibOpenRaid/LibOpenRaid.lua @@ -37,7 +37,7 @@ if (WOW_PROJECT_ID ~= WOW_PROJECT_MAINLINE and not isExpansion_Dragonflight()) t end local major = "LibOpenRaid-1.0" -local CONST_LIB_VERSION = 100 +local CONST_LIB_VERSION = 101 if (not LIB_OPEN_RAID_MAX_VERSION) then LIB_OPEN_RAID_MAX_VERSION = CONST_LIB_VERSION