Skip to content

Commit

Permalink
Merge pull request #50 from Justw8/master
Browse files Browse the repository at this point in the history
The War Within compatibility code
  • Loading branch information
tg123 authored Jun 14, 2024
2 parents 23f7863 + 3fe55f2 commit 7a4132a
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 7a4132a

Please sign in to comment.