From 001c8f0ea83f253aea8d7f0d7db33da092428ad8 Mon Sep 17 00:00:00 2001 From: Joe Z Date: Sun, 7 Jul 2019 12:11:28 -0400 Subject: [PATCH] Fixed some issues with Marathon A1. --- tetris/modes/marathon_a1.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tetris/modes/marathon_a1.lua b/tetris/modes/marathon_a1.lua index 7b520ab..df7d588 100644 --- a/tetris/modes/marathon_a1.lua +++ b/tetris/modes/marathon_a1.lua @@ -131,7 +131,8 @@ function MarathonA1Game:onLineClear(cleared_row_count) self:checkGMRequirements(self.level, self.level + cleared_row_count) if not self.clear then local new_level = math.min(self.level + cleared_row_count, 999) - if self.level == 999 then + if new_level == 999 then + self.level = 999 self.clear = true else self.level = new_level @@ -140,6 +141,7 @@ function MarathonA1Game:onLineClear(cleared_row_count) end function MarathonA1Game:updateScore(level, drop_bonus, cleared_lines) + if self.clear then return end if cleared_lines > 0 then self.combo = self.combo + (cleared_lines - 1) * 2 self.score = self.score + (