From 3fe55f216c3d0b94d18d71812d731409c17e84a1 Mon Sep 17 00:00:00 2001 From: Matthijs Groot // Justwait Date: Fri, 14 Jun 2024 21:56:10 +0200 Subject: [PATCH] The War Within compatibility code --- Myslot.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Myslot.lua b/Myslot.lua index a762d15..bd70592 100644 --- a/Myslot.lua +++ b/Myslot.lua @@ -13,6 +13,15 @@ local MYSLOT_AUTHOR = "Boshi Lian " 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