Skip to content

Commit b9a3561

Browse files
authored
Merge pull request #457 from TheLastRoadRunner/patch-2
2 parents 8733da5 + 3d9615e commit b9a3561

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

items/epic.lua

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)