Clone exclusively consumables

This commit is contained in:
Emik 2026-06-06 13:50:33 +02:00
parent b8c632f4c9
commit dff89f4062
Signed by: emik
GPG key ID: 6B0CD72A5E503BDF
3 changed files with 4 additions and 6 deletions

View file

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

View file

@ -242,10 +242,8 @@ joker {
table.insert(info_queue, negative)
end,
calculate = function(_, _, context)
return (context.selling_self or context.forcetrigger) and f(G.consumeables.cards):where(function(v)
return v.config.center.set ~= "Joker"
end):each(function(v)
q {
return (context.selling_self or context.forcetrigger) and f(G.consumeables.cards):each(function(v) --@type Card
return v.ability.consumeable and q {
delay = 1,
func = function()
play_sound "timpani"

View file

@ -640,7 +640,7 @@ end
---@generic K, V
---@param self F|{ [K]: V }
---@param func? fun(v: V, k: K)
---@param func? fun(v: V, k: K): nil
function f:each(func)
for k, v in self.next do
if func then