File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -109,9 +109,13 @@ local membershipcardtwo = {
109109 if Card .get_gameset (card ) == " modest" then
110110 a = 8
111111 end
112+ -- HATA DÜZELTME: "or 0" eklendi
112113 return {
113114 key = Cryptid .gameset_loc (self , { modest = " balanced" }),
114- vars = { card .ability .extra .chips , card .ability .extra .chips * math.floor (GLOBAL_cry_member_count / a ) },
115+ vars = {
116+ card .ability .extra .chips ,
117+ card .ability .extra .chips * math.floor ((GLOBAL_cry_member_count or 0 ) / a )
118+ },
115119 }
116120 end ,
117121 calculate = function (self , card , context )
@@ -120,13 +124,15 @@ local membershipcardtwo = {
120124 if Card .get_gameset (card ) == " modest" then
121125 a = 8
122126 end
127+ -- HATA DÜZELTME: "or 0" eklendi
128+ local member_count = GLOBAL_cry_member_count or 0
123129 return {
124130 message = localize ({
125131 type = " variable" ,
126132 key = " a_chips" ,
127- vars = { card .ability .extra .chips * math.floor (GLOBAL_cry_member_count / a ) },
133+ vars = { card .ability .extra .chips * math.floor (member_count / a ) },
128134 }),
129- chip_mod = card .ability .extra .chips * math.floor (GLOBAL_cry_member_count / a ),
135+ chip_mod = card .ability .extra .chips * math.floor (member_count / a ),
130136 }
131137 end
132138 end ,
You can’t perform that action at this time.
0 commit comments