Skip to content

Commit 8092f26

Browse files
stirbyS1M0N38
authored andcommitted
gptchore: fix .GAME references to consumables
1 parent ad22cfc commit 8092f26

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/lua/api.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -697,10 +697,10 @@ API.functions["shop"] = function(args)
697697
elseif card.ability.set == "Planet" or card.ability.set == "Tarot" or card.ability.set == "Spectral" then
698698
-- Check for free consumable slots (typo is intentional, present in source)
699699
if
700-
G.GAME.consumeables
701-
and G.GAME.consumeables.cards
702-
and G.GAME.consumeables.card_limit
703-
and #G.GAME.consumeables.cards >= G.GAME.consumeables.card_limit
700+
G.consumeables
701+
and G.consumeables.cards
702+
and G.consumeables.card_limit
703+
and #G.consumeables.cards >= G.consumeables.card_limit
704704
then
705705
API.send_error_response(
706706
"Can't purchase consumable card, consumable slots are full",

0 commit comments

Comments
 (0)