Fixed a Ti-ARS floorkick issue

pull/17/head
Ishaan Bhardwaj 2021-03-16 14:13:44 -04:00
parent 5ddc6ec561
commit 3cf496ba98
1 changed files with 3 additions and 4 deletions

View File

@ -94,11 +94,10 @@ function ARS:onPieceDrop(piece, grid)
end
function ARS:onPieceRotate(piece, grid)
if piece.floorkick >= 1 then
if piece.floorkick >= 2 and piece:isDropBlocked(grid) then
piece.locked = true
elseif piece.floorkick >= 1 then
piece.floorkick = piece.floorkick + 1
if piece:isDropBlocked(grid) then
piece.locked = true
end
end
end