Prevent Basket from cloning jokers if they end up there somehow

This commit is contained in:
Emik 2026-06-06 04:00:42 +02:00
parent 704e2ab9d1
commit c23c9adcaf
Signed by: emik
GPG key ID: 6B0CD72A5E503BDF
2 changed files with 4 additions and 2 deletions

View file

@ -3,7 +3,7 @@
"id": "Roland",
"name": "Roland",
"prefix": "Roland",
"version": "2.8.16",
"version": "2.8.17",
"badge_colour": "8BE9FD",
"display_name": "Roland",
"main_file": "src/main.lua",

View file

@ -242,7 +242,9 @@ joker {
table.insert(info_queue, negative)
end,
calculate = function(_, _, context)
return (context.selling_self or context.forcetrigger) and f(G.consumeables.cards):each(function(v)
return (context.selling_self or context.forcetrigger) and f(G.consumeables.cards):where(function(v, k)
return v.config.center.set ~= "Joker"
end):each(function(v)
q {
delay = 1,
func = function()