mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-06 05:30:00 +00:00
librange: ignore empty buttons and macros
This commit is contained in:
+5
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user