Skip to content

Commit

Permalink
Fix spell not replacing macros when the macro spell was identical to …
Browse files Browse the repository at this point in the history
…the spell
  • Loading branch information
Lardeck committed May 14, 2024
1 parent 6880eb6 commit f367697
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ImprovedTalentLoadouts.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1845,10 +1845,9 @@ function TalentLoadouts:LoadActionBar(actionBars, name)
local slotInfo = data[actionSlot]
local currentType, currentID, currentSubType = GetActionInfo(actionSlot)
if slotInfo then

local pickedUp = false
ClearCursor()
if slotInfo.type == "spell" and slotInfo.id ~= currentID then
if slotInfo.type == "spell" and (currentType ~= "spell" or slotInfo.id ~= currentID) then
PickupSpell(slotInfo.id)
pickedUp = true
elseif slotInfo.type == "macro" then
Expand Down

0 comments on commit f367697

Please sign in to comment.