Skip to content

Commit 6b0f6b3

Browse files
Fixed Gold Edition
1 parent f297acf commit 6b0f6b3

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

items/misc.lua

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1173,7 +1173,7 @@ local gold_edition = {
11731173
weight = 7,
11741174
extra_cost = 4,
11751175
in_shop = true,
1176-
config = { dollars = 2 },
1176+
config = { dollars = 2, active = true },
11771177
loc_vars = function(self, info_queue)
11781178
return { vars = { self.config.dollars } }
11791179
end,
@@ -1187,8 +1187,11 @@ local gold_edition = {
11871187
card.edition.cry_gold_seed = pseudorandom("e_cry_gold") * 2 - 1
11881188
end,
11891189
calculate = function(self, card, context)
1190-
if context.post_trigger or (context.using_consumeable and context.consumeable == card) then
1191-
SMODS.calculate_effect({ dollars = self.config.dollars }, card, true)
1190+
if context.post_trigger or (context.using_consumeable and context.consumeable == card) or (context.main_scoring and context.cardarea == G.play and self.config.active) then
1191+
SMODS.calculate_effect({ p_dollars = self.config.dollars }, card, true)
1192+
self.config.active = nil
1193+
else if not self.config.active then
1194+
self.config.active = true
11921195
end
11931196
end,
11941197
}

0 commit comments

Comments
 (0)