From f3c1cf6e1fa345e2d909977d75e27940e2cb19ca Mon Sep 17 00:00:00 2001 From: Ishaan Bhardwaj Date: Thu, 11 Feb 2021 22:11:35 -0500 Subject: [PATCH] Fixed an issue where DS-World wouldn't harddrop --- tetris/modes/gamemode.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tetris/modes/gamemode.lua b/tetris/modes/gamemode.lua index 31bf2b4..c6a4c50 100644 --- a/tetris/modes/gamemode.lua +++ b/tetris/modes/gamemode.lua @@ -179,11 +179,15 @@ function GameMode:update(inputs, ruleset) return end - if self.lock_drop and inputs["down"] ~= true then + if (self.lock_drop or ( + not ruleset.are or self:getARE() == 0 + )) and inputs["down"] ~= true then self.drop_locked = false end - if self.lock_hard_drop and inputs["up"] ~= true then + if (self.lock_hard_drop or ( + not ruleset.are or self:getARE() == 0 + )) and inputs["up"] ~= true then self.hard_drop_locked = false end