Skip to content

Commit e2565bc

Browse files
Merge pull request SpectralPack#671 from crazybot27/main
fix green seal
2 parents 73df9a2 + fff0e03 commit e2565bc

File tree

2 files changed

+12
-22
lines changed

2 files changed

+12
-22
lines changed

items/code.lua

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4520,27 +4520,17 @@ local green_seal = {
45204520
order = 604,
45214521
calculate = function(self, card, context)
45224522
if context.cardarea == "unscored" and context.main_scoring then
4523-
for k, v in ipairs(context.scoring_hand) do
4524-
v.cry_green_incompat = true
4525-
end
4526-
for k, v in ipairs(context.full_hand) do
4527-
if not v.cry_green_incompat then
4528-
G.E_MANAGER:add_event(Event({
4529-
func = function()
4530-
if G.consumeables.config.card_limit > #G.consumeables.cards then
4531-
local c = create_card("Code", G.consumeables, nil, nil, nil, nil, nil, "cry_green_seal")
4532-
c:add_to_deck()
4533-
G.consumeables:emplace(c)
4534-
v:juice_up()
4535-
end
4536-
return true
4537-
end,
4538-
}))
4539-
end
4540-
end
4541-
for k, v in ipairs(context.scoring_hand) do
4542-
v.cry_green_incompat = nil
4543-
end
4523+
G.E_MANAGER:add_event(Event({
4524+
func = function()
4525+
if G.consumeables.config.card_limit > #G.consumeables.cards then
4526+
local c = create_card("Code", G.consumeables, nil, nil, nil, nil, nil, "cry_green_seal")
4527+
c:add_to_deck()
4528+
G.consumeables:emplace(c)
4529+
card:juice_up()
4530+
end
4531+
return true
4532+
end,
4533+
}))
45444534
end
45454535
end,
45464536
}

items/misc_joker.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9403,7 +9403,7 @@ local lebaron_james = {
94039403
local max_h_mod = card.ability.immutable.max_h_mod
94049404

94059405
local available_h = math.max(0, max_h_mod - added_h)
9406-
local h_size = math.max(0, math.min(available_h, h_mod))
9406+
local h_size = to_number(math.max(0, math.min(available_h, h_mod)))
94079407

94089408
if h_size > 0 then
94099409
-- Apply hand size bonus

0 commit comments

Comments
 (0)