diff --git a/tetris/rulesets/arika_srs.lua b/tetris/rulesets/arika_srs.lua index 918c6b8..80b5d01 100755 --- a/tetris/rulesets/arika_srs.lua +++ b/tetris/rulesets/arika_srs.lua @@ -25,6 +25,9 @@ function SRS:onPieceRotate(piece, grid, upward) piece.lock_delay = 0 -- rotate reset if upward or piece:isDropBlocked(grid) then piece.manipulations = piece.manipulations + 1 + if piece:isDropBlocked(grid) then + piece.locked = true + end end end diff --git a/tetris/rulesets/standard_exp.lua b/tetris/rulesets/standard_exp.lua index 9e3b00c..a466884 100755 --- a/tetris/rulesets/standard_exp.lua +++ b/tetris/rulesets/standard_exp.lua @@ -93,6 +93,9 @@ function SRS:onPieceRotate(piece, grid, upward) piece.lock_delay = 0 -- rotate reset if upward or piece:isDropBlocked(grid) then piece.rotations = piece.rotations + 1 + if piece:isDropBlocked(grid) then + piece.locked = true + end end end diff --git a/tetris/rulesets/ti_srs.lua b/tetris/rulesets/ti_srs.lua index c4bab21..328bba6 100644 --- a/tetris/rulesets/ti_srs.lua +++ b/tetris/rulesets/ti_srs.lua @@ -186,6 +186,9 @@ function SRS:onPieceRotate(piece, grid, upward) piece.lock_delay = 0 -- rotate reset if upward or piece:isDropBlocked(grid) then piece.rotations = piece.rotations + 1 + if piece:isDropBlocked(grid) then + piece.locked = true + end end end