Fixed an issue where DS-World wouldn't harddrop

pull/16/head
Ishaan Bhardwaj 2021-02-11 22:11:35 -05:00
parent 06a8a2ebf7
commit f3c1cf6e1f
1 changed files with 6 additions and 2 deletions

View File

@ -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