From f059220b88cb5459323bb66a450639dd5353d828 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 29 Jul 2026 23:48:31 +0000 Subject: [PATCH] Fix threshold skip: add time locally, ignore enemy skips MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When timer_display_threshold is set, the local player's skip should still increase their timer (they see it go above 180). Only the matching/retraction from enemy skips is suppressed — the opponent learns nothing until the timer crosses the threshold. Co-Authored-By: Claude Opus 4.6 Claude-Session: https://claude.ai/code/session_01MuDBRvAF5nx9htEHCW2WqZ --- ui/game/timer.lua | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/ui/game/timer.lua b/ui/game/timer.lua index c0deec38..f30810b6 100644 --- a/ui/game/timer.lua +++ b/ui/game/timer.lua @@ -536,7 +536,18 @@ end -- If value increased - one player skipped even further, add time. -- If value decreased - another player catches up, deduct time. function MP.UI.update_matching_skip_timer(from_nemesis) - if (MP.LOBBY.config.timer_display_threshold or 0) > 0 then return end + if (MP.LOBBY.config.timer_display_threshold or 0) > 0 then + if not from_nemesis + and MP.LOBBY.config.timer + and not MP.GAME.timer_was_started + and not MP.GAME.nemesis_timer_was_started + and not MP.is_any_layer_active({ "no_animation_timer", "pressure_timer" }) + and (MP.LOBBY.config.timer_increment_seconds or 0) > 0 + then + MP.UI.restore_timer(MP.LOBBY.config.timer_increment_seconds, false) + end + return + end local new_diff = math.abs((MP.GAME.skips_before_pvp or 0) - (MP.GAME.enemy.skips_before_pvp or 0)) local skips_dx = new_diff - (MP.GAME.skips_difference or 0)