Only remove highlight limit if actually necessary

This commit is contained in:
Emik 2026-05-27 13:31:38 +02:00
parent 74b185e090
commit d2349ec498
Signed by: emik
GPG key ID: 6B0CD72A5E503BDF
2 changed files with 6 additions and 4 deletions

View file

@ -17,5 +17,5 @@
"conflicts": [ "conflicts": [
"Jen" "Jen"
], ],
"version": "1.6.18" "version": "1.6.19"
} }

View file

@ -222,9 +222,11 @@ function CardArea:can_highlight(...)
return orig_can_highlight(self, ...) return orig_can_highlight(self, ...)
end end
--- Allows more flexibility when using the Escapey joker to delete specific consumables. local has_escapey = next(SMODS.find_card("j_jane_escapey"))
self.config.highlighted_limit = 1 / 0 local config = self.config
return true 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 end
local orig_highlight = Card.highlight local orig_highlight = Card.highlight