@@ -7610,24 +7610,29 @@ local lebaron_james = {
76107610 name = " cry-LeBaron James" ,
76117611 key = " lebaron_james" ,
76127612 pos = { x = 2 , y = 5 },
7613- config = { extra = { h_mod = 1 , h_size = 0 } },
7613+ config = { extra = { h_mod = 1 , h_size = 0 } },
76147614 rarity = 3 ,
76157615 cost = 6 ,
76167616 atlas = " atlasone" ,
76177617 order = 133 ,
7618+ no_dbl = true ,
7619+ immutable = true , -- has issues with value manip and not easy to fix
76187620 loc_vars = function (self , info_queue , center )
7619- return { vars = { center .ability .extra .h_mod , center .ability .extra .h_size } }
7621+ return { vars = { center .ability .extra .h_mod , math.min ( 1000 , center .ability .extra .h_size ) } }
76207622 end ,
76217623 calculate = function (self , card , context )
76227624 if context .cardarea == G .play and context .individual then
76237625 if SMODS .Ranks [context .other_card .base .value ].key == " King" then
7624- G .hand :change_size (math.min (1000 - card .ability .extra .h_size , card .ability .extra .h_mod ))
7625- card .ability .extra .h_size = card .ability .extra .h_size + card .ability .extra .h_mod
7626- return {
7627- message = localize ({ type = " variable" , key = " a_handsize" , vars = { card .ability .extra .h_mod } }),
7628- colour = G .C .FILTER ,
7629- card = card ,
7630- }
7626+ local h_size = math.max (0 ,math.min (1000 - card .ability .extra .h_size , card .ability .extra .h_mod ))
7627+ G .hand :change_size (h_size )
7628+ card .ability .extra .h_size = card .ability .extra .h_size + h_size
7629+ if h_size > 0 then
7630+ return {
7631+ message = localize ({ type = " variable" , key = " a_handsize" , vars = { h_size } }),
7632+ colour = G .C .FILTER ,
7633+ card = card ,
7634+ }
7635+ end
76317636 end
76327637 end
76337638 if context .end_of_round and not context .individual and not context .repetition then
0 commit comments