Skip to content

Commit c9fb5ce

Browse files
committed
better checks for when to call context
1 parent d967572 commit c9fb5ce

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

lib/misc.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1014,6 +1014,7 @@ function Cryptid.get_circus_description()
10141014
local desc = {}
10151015
local ind = 1
10161016
local extra_rarities = {}
1017+
if not Cryptid.circus_rarities then Cryptid.circus_rarities = {} end
10171018
for i, v in pairs(Cryptid.circus_rarities) do
10181019
if not v.hidden then
10191020
extra_rarities[#extra_rarities + 1] = v

lovely/lib_misc.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,9 @@ end
163163
'''
164164
position = "after"
165165
payload = '''
166-
SMODS.calculate_context{cry_creating_card = true, card = card}
166+
if G.deck then
167+
SMODS.calculate_context{cry_creating_card = true, card = card}
168+
end
167169
'''
168170
match_indent = true
169171

0 commit comments

Comments
 (0)