Skip to content

Commit da5700b

Browse files
committed
fix is_number fallback check
1 parent 9338497 commit da5700b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

manipulate.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ function Cryptid.manipulate_table(card, ref_table, ref_value, args, tblkey)
187187
end
188188

189189
function Cryptid.manipulate_value(num, args, is_big, name)
190+
if not Cryptid.is_number(num) then return end
190191
if args.func then
191192
num = args.func(num, args, is_big, name)
192193
else

talisman.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,5 +108,5 @@ if SMODS and SMODS.Mods and not (SMODS.Mods.Talisman or SMODS.Mods.cdataman or {
108108
to_big = to_big or function(x) return x end
109109
to_number = to_number or function(x) return x end
110110
lenient_bignum = lenient_bignum or function(x) return x end
111-
is_number = is_number or function(x) return x end
111+
is_number = is_number or function(x) return type(x) == "number" end
112112
end

0 commit comments

Comments
 (0)