From a2cd86cc99da1a420e7a1feade70a7c03e0e4ed2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81kos=20T=C3=B3th?= Date: Tue, 25 Feb 2025 23:59:14 +0100 Subject: [PATCH] fix(create_card): Remove additional sound effect (#484) 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 --- src/utils.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils.lua b/src/utils.lua index 35be4cf6..b98dc6ff 100644 --- a/src/utils.lua +++ b/src/utils.lua @@ -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 @@ -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 \ No newline at end of file +end