Skip to content

Commit

Permalink
Fix Skip slot typos
Browse files Browse the repository at this point in the history
  • Loading branch information
K4thos committed Jun 14, 2022
1 parent 595e6ce commit 40eb6fc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions external/script/start.lua
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,7 @@ function start.f_cellMovement(selX, selY, cmd, side, snd, dir)
end
if dir ~= nil then
found, selX = start.f_searchEmptyBoxes(selX, selY, side, -1)
elseif (start.t_grid[selY + 1][selX + 1].char ~= nil or motif.select_info.moveoveremptyboxes == 1) and motif.select_info['cell_' .. (selY + 1) .. '_' .. (cellX + 1) .. '_skip'] ~= 1 and (config.TeamDuplicates or start.t_grid[selY + 1][selX + 1].char == 'randomselect' or not t_reservedChars[side][start.t_grid[selY + 1][selX + 1].char_ref]) and start.t_grid[selY + 1][selX + 1].hidden ~= 2 then
elseif (start.t_grid[selY + 1][selX + 1].char ~= nil or motif.select_info.moveoveremptyboxes == 1) and motif.select_info['cell_' .. (selY + 1) .. '_' .. (selX + 1) .. '_skip'] ~= 1 and (config.TeamDuplicates or start.t_grid[selY + 1][selX + 1].char == 'randomselect' or not t_reservedChars[side][start.t_grid[selY + 1][selX + 1].char_ref]) and start.t_grid[selY + 1][selX + 1].hidden ~= 2 then
break
elseif motif.select_info.searchemptyboxesup ~= 0 then
found, selX = start.f_searchEmptyBoxes(selX, selY, side, motif.select_info.searchemptyboxesup)
Expand All @@ -914,7 +914,7 @@ function start.f_cellMovement(selX, selY, cmd, side, snd, dir)
end
if dir ~= nil then
found, selX = start.f_searchEmptyBoxes(selX, selY, side, 1)
elseif (start.t_grid[selY + 1][selX + 1].char ~= nil or motif.select_info.moveoveremptyboxes == 1) and motif.select_info['cell_' .. (selY + 1) .. '_' .. (cellX + 1) .. '_skip'] ~= 1 and (config.TeamDuplicates or start.t_grid[selY + 1][selX + 1].char == 'randomselect' or not t_reservedChars[side][start.t_grid[selY + 1][selX + 1].char_ref]) and start.t_grid[selY + 1][selX + 1].hidden ~= 2 then
elseif (start.t_grid[selY + 1][selX + 1].char ~= nil or motif.select_info.moveoveremptyboxes == 1) and motif.select_info['cell_' .. (selY + 1) .. '_' .. (selX + 1) .. '_skip'] ~= 1 and (config.TeamDuplicates or start.t_grid[selY + 1][selX + 1].char == 'randomselect' or not t_reservedChars[side][start.t_grid[selY + 1][selX + 1].char_ref]) and start.t_grid[selY + 1][selX + 1].hidden ~= 2 then
break
elseif motif.select_info.searchemptyboxesdown ~= 0 then
found, selX = start.f_searchEmptyBoxes(selX, selY, side, motif.select_info.searchemptyboxesdown)
Expand All @@ -936,7 +936,7 @@ function start.f_cellMovement(selX, selY, cmd, side, snd, dir)
selX = tmpX
end
end
if (start.t_grid[selY + 1][selX + 1].char ~= nil or motif.select_info.moveoveremptyboxes == 1) and motif.select_info['cell_' .. (selY + 1) .. '_' .. (cellX + 1) .. '_skip'] ~= 1 and (config.TeamDuplicates or start.t_grid[selY + 1][selX + 1].char == 'randomselect' or not t_reservedChars[side][start.t_grid[selY + 1][selX + 1].char_ref]) and start.t_grid[selY + 1][selX + 1].hidden ~= 2 then
if (start.t_grid[selY + 1][selX + 1].char ~= nil or motif.select_info.moveoveremptyboxes == 1) and motif.select_info['cell_' .. (selY + 1) .. '_' .. (selX + 1) .. '_skip'] ~= 1 and (config.TeamDuplicates or start.t_grid[selY + 1][selX + 1].char == 'randomselect' or not t_reservedChars[side][start.t_grid[selY + 1][selX + 1].char_ref]) and start.t_grid[selY + 1][selX + 1].hidden ~= 2 then
break
end
end
Expand All @@ -954,7 +954,7 @@ function start.f_cellMovement(selX, selY, cmd, side, snd, dir)
selX = tmpX
end
end
if (start.t_grid[selY + 1][selX + 1].char ~= nil or motif.select_info.moveoveremptyboxes == 1) and motif.select_info['cell_' .. (selY + 1) .. '_' .. (cellX + 1) .. '_skip'] ~= 1 and (config.TeamDuplicates or start.t_grid[selY + 1][selX + 1].char == 'randomselect' or not t_reservedChars[side][start.t_grid[selY + 1][selX + 1].char_ref]) and start.t_grid[selY + 1][selX + 1].hidden ~= 2 then
if (start.t_grid[selY + 1][selX + 1].char ~= nil or motif.select_info.moveoveremptyboxes == 1) and motif.select_info['cell_' .. (selY + 1) .. '_' .. (selX + 1) .. '_skip'] ~= 1 and (config.TeamDuplicates or start.t_grid[selY + 1][selX + 1].char == 'randomselect' or not t_reservedChars[side][start.t_grid[selY + 1][selX + 1].char_ref]) and start.t_grid[selY + 1][selX + 1].hidden ~= 2 then
break
end
end
Expand Down

0 comments on commit 40eb6fc

Please sign in to comment.