Only remove highlight limit if actually necessary
This commit is contained in:
parent
74b185e090
commit
0d5b6fe870
2 changed files with 6 additions and 4 deletions
|
|
@ -17,5 +17,5 @@
|
|||
"conflicts": [
|
||||
"Jen"
|
||||
],
|
||||
"version": "1.6.18"
|
||||
"version": "1.6.19"
|
||||
}
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue