Skip to content

Commit 353dbfd

Browse files
authored
pot of jokes no longer explodes run
1 parent dae69b3 commit 353dbfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

items/misc_joker.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ local potofjokes = {
262262
end,
263263
calculate = function(self, card, context)
264264
if context.end_of_round and not context.individual and not context.repetition and not context.blueprint then
265-
G.hand:change_size(math.min(1000 - card.ability.extra.h_size, card.ability.extra.h_mod))
265+
G.hand:change_size(math.min(math.max(0, 1000 - card.ability.extra.h_size), card.ability.extra.h_mod))
266266
card.ability.extra.h_size = card.ability.extra.h_size + card.ability.extra.h_mod
267267
return {
268268
message = localize({ type = "variable", key = "a_handsize", vars = { card.ability.extra.h_mod } }),

0 commit comments

Comments
 (0)