Skip to content

Commit

Permalink
compatibility changes for 11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ollidiemaus committed Jul 24, 2024
1 parent 22403eb commit 5e7a667
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions AutoPotion.toc
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion Core/Spells.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 6 additions & 1 deletion FrameXML/InterfaceOptionsFrame.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 5e7a667

Please sign in to comment.