Skip to content

Commit

Permalink
Merge pull request #213 from bpapuni/master
Browse files Browse the repository at this point in the history
Fix IsItemInRange error introduced in patch 10.2.6
  • Loading branch information
Sellorio authored Mar 24, 2024
2 parents d3f1a53 + 94c7528 commit a370358
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions MegaMacro.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 100205
## Interface: 100206
## Title: Mega Macro
## Author: Sellorio
## Version: 1.0.0
Expand All @@ -25,4 +25,4 @@ src/engine/mega-macro-parser.lua

src/windows/mega-macro.window.xml

src/main.lua
src/main.lua
8 changes: 7 additions & 1 deletion src/constants.lua
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,13 @@ MegaMacroInfoFunctions = {
GetCount = function(itemId) return GetItemCount(itemId, false, true) end,
GetCharges = function(_) return 0, 0, -1, 0, 1 end, -- charges, maxCharges, chargeStart, chargeDuration, chargeModRate
IsUsable = function(itemId) return IsUsableItem(itemId), false end,
IsInRange = IsItemInRange,
IsInRange = function(itemId)
if GetItemInfo(itemId) then
return function(unit)
return IsItemInRange(itemId, unit)
end
end
end,
IsCurrent = IsCurrentItem,
IsEquipped = function(itemId) return IsEquippedItem(itemId) end,
IsAutoRepeat = function(_) return false end,
Expand Down

0 comments on commit a370358

Please sign in to comment.