Skip to content

Commit 6b20004

Browse files
authored
Merge pull request #4 from real-niacat/main
fix ^chips / ^mult reverting after trigger
2 parents 4c17171 + fcd4d91 commit 6b20004

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

talisman.lua

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ if SMODS and SMODS.Mods and (not SMODS.Mods.Talisman or not SMODS.Mods.Talisman.
2929
juice_card(effect.card)
3030
end
3131
local chips = SMODS.Scoring_Parameters["chips"]
32-
chips.current = mod_chips(chips.current ^ amount)
33-
update_hand_text({delay = 0}, {chips = chips.current})
32+
chips:modify((chips.current ^ amount) - chips.current)
3433
if not effect.remove_default_message then
3534
if from_edition then
3635
card_eval_status_text(
@@ -63,8 +62,7 @@ if SMODS and SMODS.Mods and (not SMODS.Mods.Talisman or not SMODS.Mods.Talisman.
6362
juice_card(effect.card)
6463
end
6564
local mult = SMODS.Scoring_Parameters["mult"]
66-
mult.current = mod_mult(mult.current ^ amount)
67-
update_hand_text({delay = 0}, {mult = mult.current})
65+
mult:modify((mult.current ^ amount) - mult.current)
6866
if not effect.remove_default_message then
6967
if from_edition then
7068
card_eval_status_text(

0 commit comments

Comments
 (0)