From e26b590128f0d321a68c7c489f97735abefebb62 Mon Sep 17 00:00:00 2001 From: Emik Date: Sat, 23 May 2026 18:33:01 +0200 Subject: [PATCH] Fix Spearmaster crash --- manifest.json | 2 +- src/slugcat.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/manifest.json b/manifest.json index 80d4301..d04d0ad 100644 --- a/manifest.json +++ b/manifest.json @@ -17,5 +17,5 @@ "conflicts": [ "Jen" ], - "version": "1.6.5" + "version": "1.6.6" } \ No newline at end of file diff --git a/src/slugcat.lua b/src/slugcat.lua index 59b84f3..fa5e39e 100644 --- a/src/slugcat.lua +++ b/src/slugcat.lua @@ -387,7 +387,7 @@ SMODS.Joker { cost = Cryptid and 12 or 20, rarity = Cryptid and epic or 4, Bakery_can_use = function(_, card) - return not card.debuff and Jane.can_use() and next(G.pack_cards.cards) + return not card.debuff and Jane.can_use() and G.pack_cards and G.pack_cards.cards and next(G.pack_cards.cards) end, Bakery_use_button_text = function() return "USE ALL" end, Bakery_use_joker = function()