Skip to content

Commit e59e2ec

Browse files
Fix crash with Cerulean Bell and None
1 parent dd7b02d commit e59e2ec

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

lovely/none.toml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,3 +303,29 @@ payload = '''
303303
else
304304
'''
305305
match_indent = true
306+
307+
# Fix a crash with Cerlulean bell if there are no cards in hand 1/2
308+
[[patches]]
309+
[patches.pattern]
310+
target = "blind.lua"
311+
pattern = '''
312+
forced_card.ability.forced_selection = true
313+
'''
314+
position = "before"
315+
payload = '''
316+
if forced_card then
317+
'''
318+
match_indent = true
319+
320+
# Fix a crash with Cerlulean bell if there are no cards in hand 2/2
321+
[[patches]]
322+
[patches.pattern]
323+
target = "blind.lua"
324+
pattern = '''
325+
G.hand:add_to_highlighted(forced_card)
326+
'''
327+
position = "after"
328+
payload = '''
329+
end
330+
'''
331+
match_indent = true

0 commit comments

Comments
 (0)