Skip to content

Commit c5f48e8

Browse files
committed
fix weird none bug
1 parent a87050d commit c5f48e8

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

lovely/none.toml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,3 +282,21 @@ if not text or text == "NULL" then
282282
end
283283
'''
284284
match_indent = true
285+
286+
[[patches]]
287+
[patches.pattern]
288+
target = "game.lua"
289+
pattern = '''
290+
if (not G.hand.cards[1]) and G.deck.cards[1] then
291+
G.STATE = G.STATES.DRAW_TO_HAND
292+
G.STATE_COMPLETE = false
293+
else
294+
'''
295+
position = "at"
296+
payload = '''
297+
if (not G.hand.cards[1]) and G.deck.cards[1] and not G.PROFILES[G.SETTINGS.profile].cry_none then
298+
G.STATE = G.STATES.DRAW_TO_HAND
299+
G.STATE_COMPLETE = false
300+
else
301+
'''
302+
match_indent = true

0 commit comments

Comments
 (0)