Skip to content

Commit

Permalink
Update toc for shadowlands pre-patch
Browse files Browse the repository at this point in the history
Fix spellbook scanning for shadowlands
  • Loading branch information
Tojaso committed Oct 13, 2020
1 parent 200a375 commit e01830f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Profile.lua
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ function MOD:SetCooldownDefaults()
if name and name ~= "" then cls[name] = { school = p.school, id = p.id } end
end

local openTabs = 2 -- on non-classic the first two tabs are open to all specializations
local openTabs = 3 -- on live first two tabs are open to all specializations and the third is current spec
if MOD.isClassic then openTabs = GetNumSpellTabs() end -- on classic there are no specializations so all tabs are same

for tab = 1, openTabs do -- scan first two tabs of player spell book (general and current spec) for player spells on cooldown
Expand Down Expand Up @@ -273,8 +273,8 @@ function MOD:SetCooldownDefaults()

if not MOD.isClassic then
local tabs = GetNumSpellTabs()
if tabs and tabs > 2 then
for tab = 3, tabs do -- scan inactive tabs of player spell book for icons
if tabs and tabs > 3 then
for tab = 4, tabs do -- scan inactive tabs of player spell book for icons
local spellLine, spellIcon, offset, numSpells = GetSpellTabInfo(tab)
for i = 1, numSpells do
local index = i + offset
Expand Down
2 changes: 1 addition & 1 deletion Raven.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 80300
## Interface: 90001
## Title: Raven
## Notes: Monitors buffs, debuffs and cooldowns and provides timer bars and icons plus helpful notifications
## Author: Tomber
Expand Down
2 changes: 1 addition & 1 deletion Raven_Options/Raven_Options.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 80300
## Interface: 90001
## Title: Raven Options
## Notes: Load on demand options panel for Raven
## Author: Tomber
Expand Down

0 comments on commit e01830f

Please sign in to comment.