From d2349ec498e688655fbf072238239152c2fb0708 Mon Sep 17 00:00:00 2001 From: Emik Date: Wed, 27 May 2026 13:31:38 +0200 Subject: [PATCH] Only remove highlight limit if actually necessary --- manifest.json | 2 +- src/main.lua | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/manifest.json b/manifest.json index b4e755e..133f6c3 100644 --- a/manifest.json +++ b/manifest.json @@ -17,5 +17,5 @@ "conflicts": [ "Jen" ], - "version": "1.6.18" + "version": "1.6.19" } \ No newline at end of file diff --git a/src/main.lua b/src/main.lua index bb3389e..d995399 100644 --- a/src/main.lua +++ b/src/main.lua @@ -222,9 +222,11 @@ function CardArea:can_highlight(...) return orig_can_highlight(self, ...) end - --- Allows more flexibility when using the Escapey joker to delete specific consumables. - self.config.highlighted_limit = 1 / 0 - return true + local has_escapey = next(SMODS.find_card("j_jane_escapey")) + local config = self.config + config.old_limit = config.highlighted_limit == 1 / 0 and config.old_limit or config.highlighted_limit + config.highlighted_limit = has_escapey and 1 / 0 or config.old_limit + return has_escapey and true or orig_can_highlight(self, ...) end local orig_highlight = Card.highlight