Skip to content

Commit

Permalink
fix(create_card): Remove additional sound effect (#484)
Browse files Browse the repository at this point in the history
create_card polls for edition and applies it, if we're not disabling create_card edition poll behaviour when we're already going to force an edition, then a sound effect will potentially play due to two editions being applied
  • Loading branch information
baliame authored Feb 25, 2025
1 parent 35565e8 commit a2cd86c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ function SMODS.create_card(t)
if not t.area and not t.key and t.set and SMODS.ConsumableTypes[t.set] then
t.area = G.consumeables
end
SMODS.bypass_create_card_edition = t.no_edition
SMODS.bypass_create_card_edition = t.no_edition or t.edition
local _card = create_card(t.set, t.area, t.legendary, t.rarity, t.skip_materialize, t.soulable, t.key, t.key_append)
SMODS.bypass_create_card_edition = nil

Expand Down Expand Up @@ -1907,4 +1907,4 @@ function SMODS.change_free_rerolls(mod)
G.GAME.round_resets.free_rerolls = G.GAME.round_resets.free_rerolls + mod
G.GAME.current_round.free_rerolls = math.max(G.GAME.current_round.free_rerolls + mod, 0)
calculate_reroll_cost(true)
end
end

0 comments on commit a2cd86c

Please sign in to comment.