Skip to content

Commit 9ea1749

Browse files
Fix crash on main also
1 parent 69efc8a commit 9ea1749

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

Items/Blinds.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1412,8 +1412,10 @@ return {
14121412
--Sapphire Stamp Patches
14131413
local pcfh = G.FUNCS.play_cards_from_highlighted
14141414
function G.FUNCS.play_cards_from_highlighted(e)
1415+
G.GAME.before_play_buffer = true
14151416
G.GAME.blind:cry_before_play()
14161417
pcfh(e)
1418+
G.GAME.before_play_buffer = nil
14171419
end
14181420
--Obsidian Orb Patches
14191421
local dft = Blind.defeat

Items/MiscJokers.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5970,7 +5970,9 @@ local fractal = {
59705970
remove_from_deck = function(self, card, from_debuff)
59715971
G.hand.config.highlighted_limit = G.hand.config.highlighted_limit - card.ability.extra
59725972
if G.hand.config.highlighted_limit < 5 then G.hand.config.highlighted_limit = 5 end
5973-
G.hand:unhighlight_all()
5973+
if not G.GAME.before_play_buffer then
5974+
G.hand:unhighlight_all()
5975+
end
59745976
end,
59755977
cry_credits = {
59765978
idea = {

Items/Vouchers.lua

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,9 @@ local stickyhand = { --+1 card selection limit
607607
G.hand.config.highlighted_limit = G.hand.config.highlighted_limit
608608
- math.max(1, math.floor(self.config.extra))
609609
if G.hand.config.highlighted_limit < 5 then G.hand.config.highlighted_limit = 5 end
610-
G.hand:unhighlight_all()
610+
if not G.GAME.before_play_buffer then
611+
G.hand:unhighlight_all()
612+
end
611613
end,
612614
}
613615

@@ -630,7 +632,9 @@ local grapplinghook = { --+1 card selection limit (replace me when "extra functi
630632
G.hand.config.highlighted_limit = G.hand.config.highlighted_limit
631633
- math.max(1, math.floor(self.config.extra))
632634
if G.hand.config.highlighted_limit < 5 then G.hand.config.highlighted_limit = 5 end
633-
G.hand:unhighlight_all()
635+
if not G.GAME.before_play_buffer then
636+
G.hand:unhighlight_all()
637+
end
634638
end,
635639
}
636640

@@ -653,7 +657,9 @@ local hyperspacetether = { --+2 card selection limit (replace me when "extra fun
653657
G.hand.config.highlighted_limit = G.hand.config.highlighted_limit
654658
- math.max(1, math.floor(self.config.extra))
655659
if G.hand.config.highlighted_limit < 5 then G.hand.config.highlighted_limit = 5 end
656-
G.hand:unhighlight_all()
660+
if not G.GAME.before_play_buffer then
661+
G.hand:unhighlight_all()
662+
end
657663
end,
658664
}
659665

0 commit comments

Comments
 (0)