Skip to content

Commit

Permalink
Cache all spellbook tabs
Browse files Browse the repository at this point in the history
Resolves #115
  • Loading branch information
nebularg committed Aug 15, 2024
1 parent 76adfe8 commit 72f9d8e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .luacheckrc
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ globals = {
"GetItemCount",
"GetItemIcon",
"GetItemInfo",
"GetNumSpellTabs",
"GetPlayerInfoByGUID",
"GetPVPRankInfo",
"GetPVPSessionStats",
Expand Down
4 changes: 2 additions & 2 deletions Data/Cooldowns.lua
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ end
function module:ResetSpells(e)
wipe(spells)
wipe(spellCooldowns)
-- cache spells from our current spec plus racials
for tab = 1, 2 do
-- cache spells
for tab = 1, GetNumSpellTabs() do
local _, _, offset, numSlots = GetSpellTabInfo(tab)
for slot = 1, numSlots do
local index = offset + slot
Expand Down

0 comments on commit 72f9d8e

Please sign in to comment.