Skip to content

Commit d452758

Browse files
Fix Effarcire not saving run correctly
- Fixed Effarcire not saving the run correctly after drawing the full deck to hand. This meant that the full deck would not be correctly drawn to hand if the run was re-entered after exiting the run immediately after Effarcire was triggered.
1 parent 750884e commit d452758

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

items/exotic.lua

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -585,9 +585,21 @@ local effarcire = {
585585
demicoloncompat = true,
586586
calculate = function(self, card, context)
587587
if not context.blueprint and not context.retrigger_joker or context.forcetrigger then
588-
if context.first_hand_drawn or context.forcetrigger then
589-
G.FUNCS.draw_from_deck_to_hand(#G.deck.cards)
590-
return nil, true
588+
if context.first_hand_drawn or context.forcetrigger and not G.GAME.effarcire_buffer then
589+
G.GAME.effarcire_buffer = true
590+
G.E_MANAGER:add_event(Event({
591+
func = function()
592+
G.FUNCS.draw_from_deck_to_hand(#G.deck.cards)
593+
G.E_MANAGER:add_event(Event({
594+
func = function()
595+
G.GAME.effarcire_buffer = nil
596+
save_run()
597+
return true
598+
end,
599+
}))
600+
return true
601+
end,
602+
}))
591603
elseif G.hand.config.card_limit < 1 then
592604
G.hand.config.card_limit = 1
593605
end

0 commit comments

Comments
 (0)