From b8965607611c7a9682f4c79227d15f06d1934569 Mon Sep 17 00:00:00 2001 From: shagu Date: Wed, 17 Jun 2020 21:08:38 +0200 Subject: [PATCH] librange: ignore empty buttons and macros --- libs/librange.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/libs/librange.lua b/libs/librange.lua index 86829a2a..4b16b62f 100644 --- a/libs/librange.lua +++ b/libs/librange.lua @@ -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