Skip to content

Commit 7a4132a

Browse files
authored
Merge pull request #50 from Justw8/master
The War Within compatibility code
2 parents 23f7863 + 3fe55f2 commit 7a4132a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Myslot.lua

+9
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,15 @@ local MYSLOT_AUTHOR = "Boshi Lian <[email protected]>"
1313

1414
local MYSLOT_VER = 42
1515

16+
-- TWW Beta Compat code (fix and cleanup below later)
17+
local GetNumSpellTabs = C_SpellBook and C_SpellBook.GetNumSpellBookSkillLines or GetNumSpellTabs
18+
local GetSpellTabInfo = C_SpellBook and C_SpellBook.GetSpellBookSkillLineInfo or GetSpellTabInfo
19+
local PickupSpell = C_Spell and C_Spell.PickupSpell or PickupSpell
20+
local PickupItem = C_Item and C_Item.PickupItem or PickupItem
21+
local GetSpellInfo = C_Spell and C_Spell.GetSpellName or GetSpellInfo
22+
local GetSpellLink = C_Spell and C_Spell.GetSpellLink or GetSpellLink
23+
-- TWW Beta Compat End
24+
1625
-- local MYSLOT_IS_DEBUG = true
1726
local MYSLOT_LINE_SEP = IsWindowsClient() and "\r\n" or "\n"
1827
local MYSLOT_MAX_ACTIONBAR = 180

0 commit comments

Comments
 (0)