Fix Spearmaster crash

This commit is contained in:
Emik 2026-05-23 18:33:01 +02:00
parent e902d8b72e
commit f72f0ae7c5
Signed by: emik
GPG key ID: 6B0CD72A5E503BDF
2 changed files with 2 additions and 2 deletions

View file

@ -17,5 +17,5 @@
"conflicts": [
"Jen"
],
"version": "1.6.5"
"version": "1.6.6"
}

View file

@ -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()