From 4243d6b2ba884ac7ce51f9752c343eb1926527ce Mon Sep 17 00:00:00 2001 From: Kirby703 <14858059+Kirby703@users.noreply.github.com> Date: Wed, 28 Jul 2021 18:38:22 -0400 Subject: [PATCH] fix a3 cools --- tetris/modes/marathon_a3.lua | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/tetris/modes/marathon_a3.lua b/tetris/modes/marathon_a3.lua index ec5fd1d..e3c787a 100644 --- a/tetris/modes/marathon_a3.lua +++ b/tetris/modes/marathon_a3.lua @@ -218,16 +218,11 @@ function MarathonA3Game:updateSectionTimes(old_level, new_level) section_70_time = self.frames - self.section_start_time table.insert(self.secondary_section_times, section_70_time) - if section <= 9 and self.section_status[section - 1] == "cool" and - self.secondary_section_times[section] <= self.secondary_section_times[section - 1] + 120 then + if section <= 9 and self.secondary_section_times[section] < cool_cutoffs[section] and + (section == 1 or self.secondary_section_times[section] <= self.secondary_section_times[section - 1] + 120) then self.section_cool = true self.coolregret_message = "COOL!!" - self.coolregret_timer = 300 - elseif self.section_status[section - 1] == "cool" then self.section_cool = false - elseif section <= 9 and self.secondary_section_times[section] < cool_cutoffs[section] then - self.section_cool = true - self.coolregret_message = "COOL!!" - self.coolregret_timer = 300 + self.coolregret_timer = 300 end end end