Fixed issue that caused crashes due to newer versions of SMODS. Will now work with MacOS systems

This commit is contained in:
davidmolgard
2025-04-21 17:18:10 -06:00
parent 20f39ff09b
commit f0cce6c663
3 changed files with 2 additions and 12 deletions

View File

@@ -317,7 +317,7 @@ function FN.SIM.simulate_blind_debuffs()
return false -- IMPORTANT: Avoid duplicate effects from Blind:debuff_hand() below return false -- IMPORTANT: Avoid duplicate effects from Blind:debuff_hand() below
end end
return blind_obj:debuff_hand(FN.SIM.env.played_cards, FN.SIM.env.poker_hands, FN.SIM.env.scoring_name, true) return blind_obj:debuff_hand(G.hand.highlighted, FN.SIM.env.poker_hands, FN.SIM.env.scoring_name, true)
end end
-- --

View File

@@ -7,7 +7,7 @@
"prefix": "fn", "prefix": "fn",
"main_file": "CorePreview.lua", "main_file": "CorePreview.lua",
"priority": 0, "priority": 0,
"version": "2.0.0", "version": "2.0.1",
"dependencies": [], "dependencies": [],
"conflicts": [] "conflicts": []
} }

View File

@@ -48,13 +48,3 @@ sources = [
target = "functions/UI_definitions.lua" target = "functions/UI_definitions.lua"
position = "append" position = "append"
sources = [ "InterfacePreview.lua" ] sources = [ "InterfacePreview.lua" ]
[[patches]]
[patches.pattern]
target = '''=[SMODS _ "src/overrides.lua"]'''
pattern = "function Blind:debuff_hand(cards, hand, handname, check)"
position = 'after'
payload = '''
do return debuff_hand(self, cards, hand, handname, check) end
'''
match_indent = true