librange: skip on macro action slots

This commit is contained in:
shagu
2020-12-30 16:28:33 +01:00
parent 5ae24f72b0
commit e23cac89d8
+4 -2
View File
@@ -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