Skip to content

Commit e09a2ca

Browse files
committed
fix: make the legendary check with weights explicitly nil in create card
1 parent 657befe commit e09a2ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lovely/weights.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ if forced_key and not G.GAME.banned_keys[forced_key] then
4242
'''
4343
payload = '''
4444
-- Use SMODS object weight system when enabled
45-
if not forced_key and SMODS.optional_features.object_weights then forced_key = SMODS.poll_object({type = _type, guaranteed = true, rarities = legendary and {'Legendary'}}) end
45+
if not forced_key and SMODS.optional_features.object_weights then forced_key = SMODS.poll_object({type = _type, guaranteed = true, rarities = legendary and {'Legendary'} or nil }) end
4646
4747
'''
4848

0 commit comments

Comments
 (0)