Skip to content

Commit 03a23e3

Browse files
Fix Garden of Forking Paths
Check cards correctly with context.scoring_hand[i] where context.other_card doesn't exist
1 parent a5a5522 commit 03a23e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

items/misc_joker.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1757,9 +1757,9 @@ local gardenfork = {
17571757
calculate = function(self, card, context)
17581758
if context.cardarea == G.jokers and context.before and not context.blueprint then
17591759
for i = 1, #context.full_hand do
1760-
if context.other_card:get_id() == 14 then
1760+
if context.scoring_hand[i]:get_id() == 14 then
17611761
for j = 1, #context.full_hand do
1762-
if context.other_card:get_id() == 7 then -- :( ekshpenshive
1762+
if context.scoring_hand[i]:get_id() == 7 then -- :( ekshpenshive
17631763
ease_dollars(card.ability.extra.money)
17641764
return { message = "$" .. card.ability.extra.money, colour = G.C.MONEY }
17651765
end

0 commit comments

Comments
 (0)