mirror of
https://github.com/ershisan99/Fantoms-Preview.git
synced 2025-12-16 04:59:25 +00:00
Fixed issue that caused crashes due to newer versions of SMODS. Will now work with MacOS systems
This commit is contained in:
@@ -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
|
||||
|
||||
--
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
"prefix": "fn",
|
||||
"main_file": "CorePreview.lua",
|
||||
"priority": 0,
|
||||
"version": "2.0.0",
|
||||
"version": "2.0.1",
|
||||
"dependencies": [],
|
||||
"conflicts": []
|
||||
}
|
||||
|
||||
10
lovely.toml
10
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
|
||||
|
||||
Reference in New Issue
Block a user