From bdcd25b82c3c7cd855e5e8f672caf4c034dd5591 Mon Sep 17 00:00:00 2001 From: Oshisaure Date: Mon, 19 Oct 2020 04:19:36 +0100 Subject: [PATCH] Fixed T floorkick in ARS Ti/ACE/ACE2 --- tetris/rulesets/arika_ace.lua | 2 +- tetris/rulesets/arika_ace2.lua | 2 +- tetris/rulesets/arika_ti.lua | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tetris/rulesets/arika_ace.lua b/tetris/rulesets/arika_ace.lua index 399fdb8..76f095d 100755 --- a/tetris/rulesets/arika_ace.lua +++ b/tetris/rulesets/arika_ace.lua @@ -144,7 +144,7 @@ function ARS:attemptWallkicks(piece, new_piece, rot_dir, grid) elseif grid:canPlacePiece(new_piece:withOffset({x=-1, y=0})) then piece:setRelativeRotation(rot_dir):setOffset({x=-1, y=0}) elseif piece.shape == "T" - and new_piece.rotation == 1 + and new_piece.rotation == 0 and piece.floorkick == 0 and grid:canPlacePiece(new_piece:withOffset({x=0, y=-1})) then diff --git a/tetris/rulesets/arika_ace2.lua b/tetris/rulesets/arika_ace2.lua index 613a3dc..2d90b48 100644 --- a/tetris/rulesets/arika_ace2.lua +++ b/tetris/rulesets/arika_ace2.lua @@ -131,7 +131,7 @@ function ARS:attemptWallkicks(piece, new_piece, rot_dir, grid) elseif grid:canPlacePiece(new_piece:withOffset({x=-1, y=0})) then piece:setRelativeRotation(rot_dir):setOffset({x=-1, y=0}) elseif piece.shape == "T" - and new_piece.rotation == 1 + and new_piece.rotation == 0 and piece.floorkick == 0 and grid:canPlacePiece(new_piece:withOffset({x=0, y=-1})) then diff --git a/tetris/rulesets/arika_ti.lua b/tetris/rulesets/arika_ti.lua index 6c7b363..eec3320 100644 --- a/tetris/rulesets/arika_ti.lua +++ b/tetris/rulesets/arika_ti.lua @@ -131,7 +131,7 @@ function ARS:attemptWallkicks(piece, new_piece, rot_dir, grid) elseif grid:canPlacePiece(new_piece:withOffset({x=-1, y=0})) then piece:setRelativeRotation(rot_dir):setOffset({x=-1, y=0}) elseif piece.shape == "T" - and new_piece.rotation == 1 + and new_piece.rotation == 0 and piece.floorkick == 0 and grid:canPlacePiece(new_piece:withOffset({x=0, y=-1})) then