Skip to content

Commit 96ca0e4

Browse files
Fix Obsidian Orb + Stamp allowing 1 card hand
1 parent ecc305c commit 96ca0e4

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

items/blind.lua

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -774,15 +774,22 @@ local sapphire_stamp = {
774774
end,
775775
set_blind = function(self, reset, silent)
776776
if not reset then
777+
G.GAME.stamp_mod = true
777778
G.hand.config.highlighted_limit = G.hand.config.highlighted_limit + 1
778779
end
779780
end,
780781
defeat = function(self, silent)
782+
if G.GAME.stamp_mod then
783+
G.GAME.stamp_mod = nil
784+
end
781785
if not G.GAME.blind.disabled then
782786
G.hand.config.highlighted_limit = G.hand.config.highlighted_limit - 1
783787
end
784788
end,
785789
disable = function(self, silent)
790+
if G.GAME.stamp_mod then
791+
G.GAME.stamp_mod = nil
792+
end
786793
if not G.GAME.blind.disabled then
787794
G.hand.config.highlighted_limit = G.hand.config.highlighted_limit - 1
788795
end

lovely/misprint.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ match_indent = true
180180
target = "functions/button_callbacks.lua"
181181
pattern = "if #G.hand.highlighted <= 0 or G.GAME.blind.block_play or #G.hand.highlighted > 5 then"
182182
position = "at"
183-
payload = "if #G.hand.highlighted <= (G.GAME.blind and G.GAME.blind.name == 'cry-Sapphire Stamp' and not G.GAME.blind.disabled and 1 or 0) or G.GAME.blind.block_play then"
183+
payload = "if #G.hand.highlighted <= (G.GAME.stamp_mod and 1 or 0) or G.GAME.blind.block_play then"
184184
match_indent = true
185185

186186
# Hieroglyph

0 commit comments

Comments
 (0)