ARE canceling

This commit is contained in:
Ishaan Bhardwaj
2020-11-16 21:16:59 -05:00
parent b03473d2fe
commit e38da49180
2 changed files with 9 additions and 0 deletions

View File

@@ -279,6 +279,14 @@ function GameMode:processDelays(inputs, ruleset, drop_speed)
end
elseif self.are > 0 then
self.are = self.are - 1
if ruleset.are_cancel and
self.prev_inputs["up"] and
(inputs["left"] or inputs["right"] or
inputs["rotate_left"] or inputs["rotate_left2"] or
inputs["rotate_right"] or inputs["rotate_right2"] or
inputs["rotate_180"]) then
self.are = 0
end
if self.are == 0 then
self:initializeOrHold(inputs, ruleset)
end