Skip to content

Commit

Permalink
Use new API
Browse files Browse the repository at this point in the history
  • Loading branch information
p3lim committed Jul 21, 2024
1 parent 2572827 commit a59862c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions modules/shootfruits.lua
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
local _, addon = ...

local FRUIT_QUEST = 70549 -- Low Hanging Fruit
local spellInfo = C_Spell.GetSpellInfo(388556)
local MACRO = ([[
/target %s
/click ExtraActionButton1
]]):format('Honey Plum', spellInfo.name) -- TODO: localize
]]):format('Honey Plum', C_Spell.GetSpellName(388556)) -- TODO: localize

local function onQuestRemoved(self, questID)
if questID == FRUIT_QUEST then
Expand Down
2 changes: 1 addition & 1 deletion modules/training.lua
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ local function onUnitAura(self, unit)
table.wipe(actionMessages)
table.wipe(actionResetSpells)
for spellID, actionIndex in next, actionSpells do
actionMessages[C_Spell.GetSpellInfo(spellID).name] = actionIndex
actionMessages[C_Spell.GetSpellName(spellID)] = actionIndex
actionResetSpells[spellID] = true
end

Expand Down

0 comments on commit a59862c

Please sign in to comment.