Skip to content

Commit 81f686b

Browse files
committed
m
1 parent ac4bf0b commit 81f686b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lib/calculate.lua

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -917,7 +917,7 @@ function force_calculate(card)
917917
trig = context[3]
918918
end
919919
if type(context[1]) == "function" then
920-
context = context[1](context[2] or {})
920+
context = context[1](context[2] or {}, card)
921921
else
922922
context = context[1]
923923
end
@@ -939,6 +939,10 @@ function __context(t, arg)
939939
return ret
940940
end
941941

942+
function __no_context(t)
943+
return __context(t)
944+
end
945+
942946
function __joker_main(t)
943947
return __context(t, { cardarea = G.jokers, joker_main = true })
944948
end
@@ -994,7 +998,7 @@ Cryptid.force_contexts = {
994998
G.GAME.current_round.discards_left = memory.discards
995999
end end
9961000
},
997-
j_marble = {__context, nil, function(trigger, memory, _card) --Doesn't play nicely, redoing from scratch
1001+
j_marble = {__no_context, nil, function(trigger, memory, _card) --Doesn't play nicely, redoing from scratch
9981002
if trigger then
9991003
local front = pseudorandom_element(G.P_CARDS, pseudoseed('marb_fr'))
10001004
G.playing_card = (G.playing_card and G.playing_card + 1) or 1

0 commit comments

Comments
 (0)