librange: ignore empty buttons and macros

This commit is contained in:
shagu
2020-06-17 21:08:38 +02:00
parent 3254a951c0
commit b896560761
+5 -3
View File
@@ -193,9 +193,11 @@ end
function librange:GetRangeSlot()
for i=1,120 do
local texture = GetActionTexture(i)
for _, check in pairs(spells[class]) do
if check == texture then
return i
if texture and not GetMacroInfo(i) then
for _, check in pairs(spells[class]) do
if check == texture then
return i
end
end
end
end