diff --git a/manifest.json b/manifest.json index 17af693..810f741 100644 --- a/manifest.json +++ b/manifest.json @@ -3,7 +3,7 @@ "id": "Roland", "name": "Roland", "prefix": "Roland", - "version": "2.9.0", + "version": "2.9.1", "badge_colour": "8BE9FD", "display_name": "Roland", "main_file": "src/main.lua", diff --git a/src/tarot.lua b/src/tarot.lua index a3d30c5..e2d60cb 100644 --- a/src/tarot.lua +++ b/src/tarot.lua @@ -21,9 +21,16 @@ local coolheaded = SMODS.Consumable { return {vars = {card.ability.extra.amount}} end, can_use = function(_, card) - return u() and f(G.jokers.highlighted):concat(Bakery_API.get_highlighted()):count(function(v) - return not v.edition - end) == card.ability.extra.amount + if not u() then + return false + end + + local highlighted = Bakery_API.get_highlighted() + + return #G.jokers.highlighted + #highlighted == card.ability.extra.amount and + f(G.jokers.highlighted):concat(Bakery_API.get_highlighted()):all(function(v) + return not v.edition + end) end, use = function() f(G.jokers.highlighted):concat(Bakery_API.get_highlighted()):each(function(v)