Skip to content

Commit

Permalink
Support Shadowform stance paging on BCC
Browse files Browse the repository at this point in the history
Fixes #55
  • Loading branch information
Nevcairiel committed May 21, 2021
1 parent 0d0cd7e commit dd3a5d9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions ActionBars.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ local abdefaults = {
DRUID = { bear = 9, cat = 7, prowl = 8 },
ROGUE = { stealth = 7 },
WARRIOR = WoWClassic and { battle = 7, def = 8, berserker = 9 } or nil,
PRIEST = WoWClassic and { shadowform = 7 } or nil,
},
},
visibility = {
Expand Down
5 changes: 5 additions & 0 deletions StateBar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ local table_insert, table_concat, fmt = table.insert, table.concat, string.forma
-- GLOBALS: MainMenuBarArtFrame, OverrideActionBar, RegisterStateDriver, UnregisterStateDriver

local WoWClassic = (WOW_PROJECT_ID ~= WOW_PROJECT_MAINLINE)
local WoWBC = (WOW_PROJECT_ID == WOW_PROJECT_BURNING_CRUSADE_CLASSIC)

local StateBar = setmetatable({}, {__index = ButtonBar})
local StateBar_MT = {__index = StateBar}
Expand Down Expand Up @@ -105,6 +106,10 @@ DefaultStanceMap = setmetatable({}, { __index = function(t,k)
{ id = "def", name = GetSpellInfo(71), index = 2 },
{ id = "berserker", name = GetSpellInfo(2458), index = 3 },
}
elseif k == "PRIEST" and WoWBC then
newT = {
{ id = "shadowform", name = GetSpellInfo(15473), index = 1 },
}
end
rawset(t, k, newT)

Expand Down

1 comment on commit dd3a5d9

@zackeryps
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you Nevcairiel

Please sign in to comment.