Skip to content

Commit c4d68a2

Browse files
committed
fix another card_eval_status_text crash
1 parent c1d8fa5 commit c4d68a2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lovely.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1368,6 +1368,14 @@ position = 'at'
13681368
payload = "text = localize{type='variable',key='a_xmult'..(to_big(amt)<to_big(0) and '_minus' or ''),vars={math.abs(amt)}}"
13691369
match_indent = true
13701370

1371+
[[patches]]
1372+
[patches.pattern]
1373+
target = 'functions/common_events.lua'
1374+
pattern = "if amt > 0 or amt < 0 then"
1375+
position = 'at'
1376+
payload = "if to_big(amt) > to_big(0) or to_big(amt) < to_big(0) then"
1377+
match_indent = true
1378+
13711379
[[patches]]
13721380
[patches.regex]
13731381
target = '=[SMODS _ "src/utils.lua"]'

0 commit comments

Comments
 (0)