diff --git a/AutoPotion.toc b/AutoPotion.toc index 9365c0b..373653c 100755 --- a/AutoPotion.toc +++ b/AutoPotion.toc @@ -1,8 +1,8 @@ -## Interface: 100207 +## Interface: 110000 ## Interface-Classic: 11503 ## Interface-WOTLKC: 30403 ## Interface-Cata: 40400 -## Version: 3.4.1 +## Version: 3.5.0 ## Title: Auto Potion ## Author: ollidiemaus ## Notes: Updates the Macro AutoPotion to use either Healthstone or the highest Potion found in Bags diff --git a/Core/Spells.lua b/Core/Spells.lua index 7923dab..f8704b0 100755 --- a/Core/Spells.lua +++ b/Core/Spells.lua @@ -49,7 +49,7 @@ ham.Spell.new = function(id, name) self.id = id self.name = name - self.cd = GetSpellBaseCooldown(id) + self.cd = C_Spell.GetSpellCooldown(id) function self.getId() return self.id diff --git a/FrameXML/InterfaceOptionsFrame.lua b/FrameXML/InterfaceOptionsFrame.lua index 5f736ac..dd5d0a9 100644 --- a/FrameXML/InterfaceOptionsFrame.lua +++ b/FrameXML/InterfaceOptionsFrame.lua @@ -169,7 +169,12 @@ function panel:InitializeOptions() self.panel = CreateFrame("Frame", "Auto Potion", InterfaceOptionsFramePanelContainer) ---@diagnostic disable-next-line: inject-field self.panel.name = "Auto Potion" - InterfaceOptions_AddCategory(self.panel) + if InterfaceOptions_AddCategory then + InterfaceOptions_AddCategory(self.panel) + else + local category = Settings.RegisterCanvasLayoutCategory(self.panel, self.panel.name); + Settings.RegisterAddOnCategory(category); + end ------------- HEADER ------------- local title = self.panel:CreateFontString("ARTWORK", nil, "GameFontNormalHuge")