Skip to content

Commit d6035ec

Browse files
update effarcire to use new smods stuff
ig steamodded broke the old way to do it or smt idk
1 parent 39327b7 commit d6035ec

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

items/exotic.lua

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -585,11 +585,14 @@ 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 and not G.GAME.effarcire_buffer then
588+
if
589+
context.first_hand_drawn
590+
or context.forcetrigger and not G.GAME.effarcire_buffer and #G.deck.cards ~= 0
591+
then
589592
G.GAME.effarcire_buffer = true
590593
G.E_MANAGER:add_event(Event({
591594
func = function()
592-
G.FUNCS.draw_from_deck_to_hand(#G.deck.cards)
595+
SMODS.draw_cards(#G.deck.cards)
593596
G.E_MANAGER:add_event(Event({
594597
func = function()
595598
G.GAME.effarcire_buffer = nil

0 commit comments

Comments
 (0)