Skip to content

Commit

Permalink
Updating LibOpenRaid
Browse files Browse the repository at this point in the history
  • Loading branch information
Tercioo committed Jul 24, 2024
1 parent 387a8ba commit 1c94c0e
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 9 deletions.
12 changes: 6 additions & 6 deletions Libs/LibOpenRaid/GetPlayerInformation.lua
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ local getSpellListAsHashTableFromSpellBook = function()
if (raceId[playerRaceId]) then
spellId = GetOverrideSpell(spellId)
local spellName = GetSpellInfo(spellId)
local bIsPassive = IsPassiveSpell(spellId, spellBookPlayerEnum)
local bIsPassive = IsPassiveSpell(entryOffset, spellBookPlayerEnum)
if (spellName and not bIsPassive) then
completeListOfSpells[spellId] = true
end
Expand All @@ -585,7 +585,7 @@ local getSpellListAsHashTableFromSpellBook = function()
if (raceId == playerRaceId) then
spellId = GetOverrideSpell(spellId)
local spellName = GetSpellInfo(spellId)
local bIsPassive = IsPassiveSpell(spellId, spellBookPlayerEnum)
local bIsPassive = IsPassiveSpell(entryOffset, spellBookPlayerEnum)
if (spellName and not bIsPassive) then
completeListOfSpells[spellId] = true
end
Expand All @@ -608,7 +608,7 @@ local getSpellListAsHashTableFromSpellBook = function()
--print(tabName, tabTexture == specIconTexture, offset, tabEnd,spellType, spellId)
spellId = GetOverrideSpell(spellId)
local spellName = GetSpellInfo(spellId)
local bIsPassive = IsPassiveSpell(spellId, spellBookPlayerEnum)
local bIsPassive = IsPassiveSpell(entryOffset, spellBookPlayerEnum)
if LIB_OPEN_RAID_MULTI_OVERRIDE_SPELLS[spellId] then
for _, overrideSpellId in pairs(LIB_OPEN_RAID_MULTI_OVERRIDE_SPELLS[spellId]) do
completeListOfSpells[overrideSpellId] = true
Expand All @@ -629,10 +629,10 @@ local getSpellListAsHashTableFromSpellBook = function()
for entryOffset = offset, tabEnd - 1 do
local spellType, spellId = GetSpellBookItemInfo(entryOffset, spellBookPlayerEnum)
if (spellId) then
if (spellType == "SPELL") then
if (spellType == "SPELL" or spellType == 1) then
spellId = GetOverrideSpell(spellId)
local spellName = GetSpellInfo(spellId)
local bIsPassive = IsPassiveSpell(spellId, spellBookPlayerEnum)
local bIsPassive = IsPassiveSpell(entryOffset, spellBookPlayerEnum)

if LIB_OPEN_RAID_MULTI_OVERRIDE_SPELLS[spellId] then
for _, overrideSpellId in pairs(LIB_OPEN_RAID_MULTI_OVERRIDE_SPELLS[spellId]) do
Expand Down Expand Up @@ -666,7 +666,7 @@ local getSpellListAsHashTableFromSpellBook = function()
local spellName, _, unmaskedSpellId = GetSpellBookItemName(i, spellBookPetEnum)
if (unmaskedSpellId) then
unmaskedSpellId = GetOverrideSpell(unmaskedSpellId)
local bIsPassive = IsPassiveSpell(unmaskedSpellId, spellBookPetEnum)
local bIsPassive = IsPassiveSpell(i, spellBookPetEnum)
if (spellName and not bIsPassive) then
completeListOfSpells[unmaskedSpellId] = true
end
Expand Down
2 changes: 1 addition & 1 deletion Libs/LibOpenRaid/LibOpenRaid.lua
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ end

local major = "LibOpenRaid-1.0"

local CONST_LIB_VERSION = 131
local CONST_LIB_VERSION = 132

if (LIB_OPEN_RAID_MAX_VERSION) then
if (CONST_LIB_VERSION <= LIB_OPEN_RAID_MAX_VERSION) then
Expand Down
4 changes: 2 additions & 2 deletions boot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
local addonName, Details222 = ...
local version, build, date, tvs = GetBuildInfo()

Details.build_counter = 12818
Details.alpha_build_counter = 12818 --if this is higher than the regular counter, use it instead
Details.build_counter = 12819
Details.alpha_build_counter = 12819 --if this is higher than the regular counter, use it instead
Details.dont_open_news = true
Details.game_version = version
Details.userversion = version .. " " .. Details.build_counter
Expand Down
10 changes: 10 additions & 0 deletions luaserver.lua
Original file line number Diff line number Diff line change
Expand Up @@ -945,6 +945,16 @@ function C_Item.GetItemCount() end
function C_Item.GetItemInfoInstant() end
function C_Item.GetStackCount() end

--quests
---@class questrewardcurrencyinfo
---@field texture number
---@field name string
---@field currencyID number
---@field quality number
---@field baseRewardAmount number
---@field bonusRewardAmount number
---@field totalRewardAmount number
---@field questRewardContextFlags table?

--faction
---@class factioninfo
Expand Down

0 comments on commit 1c94c0e

Please sign in to comment.