Fixed T-floorkick behavior in Ti/ACE ARS

pull/16/head
Ishaan Bhardwaj 2021-02-18 21:04:03 -05:00
parent ef6d156d38
commit cb2b693bcb
3 changed files with 7 additions and 1 deletions

View File

@ -47,6 +47,9 @@ function ARS:onPieceRotate(piece, grid)
end
if piece.floorkick >= 1 then
piece.floorkick = piece.floorkick + 1
if piece:isDropBlocked(grid) then
piece.locked = true
end
end
end

View File

@ -34,6 +34,9 @@ function ARS:onPieceRotate(piece, grid)
end
if piece.floorkick >= 1 then
piece.floorkick = piece.floorkick + 1
if piece:isDropBlocked(grid) then
piece.locked = true
end
end
end

View File

@ -74,8 +74,8 @@ function ARS:attemptWallkicks(piece, new_piece, rot_dir, grid)
and grid:canPlacePiece(new_piece:withOffset({x=0, y=-1}))
then
-- T floorkick
piece.floorkick = piece.floorkick + 1
self:onPieceRotate(piece, grid)
piece.floorkick = piece.floorkick + 1
piece:setRelativeRotation(rot_dir):setOffset({x=0, y=-1})
end
end