From e23cac89d82aee64da53890366bdb63260858df6 Mon Sep 17 00:00:00 2001 From: shagu Date: Wed, 30 Dec 2020 16:28:33 +0100 Subject: [PATCH] librange: skip on macro action slots --- libs/librange.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libs/librange.lua b/libs/librange.lua index e5e8b2a6..fdbd772d 100644 --- a/libs/librange.lua +++ b/libs/librange.lua @@ -192,9 +192,11 @@ function librange:GetRealUnit(unit) end function librange:GetRangeSlot() + local texture + for i=1,120 do - local texture = GetActionTexture(i) - if texture and not GetMacroInfo(i) then + texture = GetActionTexture(i) + if texture and not GetActionText(i) then for _, check in pairs(spells[class]) do if check == texture then return i