Skip to content

Commit

Permalink
The War Within compatibility code
Browse files Browse the repository at this point in the history
  • Loading branch information
Justw8 authored Jun 14, 2024
1 parent 23f7863 commit 3fe55f2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Myslot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ local MYSLOT_AUTHOR = "Boshi Lian <[email protected]>"

local MYSLOT_VER = 42

-- TWW Beta Compat code (fix and cleanup below later)
local GetNumSpellTabs = C_SpellBook and C_SpellBook.GetNumSpellBookSkillLines or GetNumSpellTabs
local GetSpellTabInfo = C_SpellBook and C_SpellBook.GetSpellBookSkillLineInfo or GetSpellTabInfo
local PickupSpell = C_Spell and C_Spell.PickupSpell or PickupSpell
local PickupItem = C_Item and C_Item.PickupItem or PickupItem
local GetSpellInfo = C_Spell and C_Spell.GetSpellName or GetSpellInfo
local GetSpellLink = C_Spell and C_Spell.GetSpellLink or GetSpellLink
-- TWW Beta Compat End

-- local MYSLOT_IS_DEBUG = true
local MYSLOT_LINE_SEP = IsWindowsClient() and "\r\n" or "\n"
local MYSLOT_MAX_ACTIONBAR = 180
Expand Down

0 comments on commit 3fe55f2

Please sign in to comment.