Skip to content

Commit

Permalink
11.0.2 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
ollidiemaus committed Aug 14, 2024
1 parent 5a68cd2 commit cf2cd71
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions AutoPotion.toc
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
## Interface: 110000
## Interface: 110002
## Interface-Classic: 11503
## Interface-WOTLKC: 30403
## Interface-Cata: 40400
## Version: 3.5.3
## Version: 3.5.4
## Title: Auto Potion
## Author: ollidiemaus
## Notes: Updates the Macro AutoPotion to use either Healthstone or the highest Potion found in Bags
Expand Down
4 changes: 2 additions & 2 deletions FrameXML/InterfaceOptionsFrame.lua
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ function panel:updatePrio()

if next(ham.spellIDs) ~= nil then
for i, id in ipairs(ham.spellIDs) do
local name, rank, iconTexture, castTime, minRange, maxRange = GetSpellInfo(id)
local iconTexture, originalIconTexture = C_Spell.GetSpellTexture(id)
local currentFrame = prioFrames[i]
local currentTexture = prioTextures[i]
if currentFrame ~= nil then
Expand Down Expand Up @@ -297,7 +297,7 @@ function panel:InitializeClassSpells(relativeTo)
local count = 0
for i, spell in ipairs(ham.supportedSpells) do
if IsSpellKnown(spell) then
local name, rank, icon, castTime, minRange, maxRange = GetSpellInfo(spell)
local name = C_Spell.GetSpellName(spell)
local button = CreateFrame("CheckButton", nil, self.panel, "InterfaceOptionsCheckButtonTemplate")

if count == 3 then
Expand Down
4 changes: 2 additions & 2 deletions code.lua
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ local function buildSpellMacroString()
if next(ham.spellIDs) ~= nil then
local shortestCD = nil
for i, spell in ipairs(ham.spellIDs) do
local name, rank, icon, castTime, minRange, maxRange = GetSpellInfo(spell)
local name = C_Spell.GetSpellName(spell)

if HAMDB.cdReset then
local cooldownMS, gcdMS = GetSpellBaseCooldown(spell)
local cooldownMS, gcdMS = C_Spell.GetSpellCooldown(spell)
local cd = cooldownMS / 1000
if shortestCD == nil then
shortestCD = cd
Expand Down

0 comments on commit cf2cd71

Please sign in to comment.