From f0cce6c66351f8efd902ad55ee09cf9f3c58e853 Mon Sep 17 00:00:00 2001 From: davidmolgard Date: Mon, 21 Apr 2025 17:18:10 -0600 Subject: [PATCH] Fixed issue that caused crashes due to newer versions of SMODS. Will now work with MacOS systems --- EngineSimulate.lua | 2 +- FantomsPreview.json | 2 +- lovely.toml | 10 ---------- 3 files changed, 2 insertions(+), 12 deletions(-) diff --git a/EngineSimulate.lua b/EngineSimulate.lua index e82af51..903b9b4 100644 --- a/EngineSimulate.lua +++ b/EngineSimulate.lua @@ -317,7 +317,7 @@ function FN.SIM.simulate_blind_debuffs() return false -- IMPORTANT: Avoid duplicate effects from Blind:debuff_hand() below 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 -- diff --git a/FantomsPreview.json b/FantomsPreview.json index 5f58f20..4420750 100644 --- a/FantomsPreview.json +++ b/FantomsPreview.json @@ -7,7 +7,7 @@ "prefix": "fn", "main_file": "CorePreview.lua", "priority": 0, - "version": "2.0.0", + "version": "2.0.1", "dependencies": [], "conflicts": [] } diff --git a/lovely.toml b/lovely.toml index bbc91b7..1815b21 100644 --- a/lovely.toml +++ b/lovely.toml @@ -48,13 +48,3 @@ sources = [ target = "functions/UI_definitions.lua" position = "append" 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