From f193389455af898433a864db118d4bae31ba954e Mon Sep 17 00:00:00 2001 From: Vick Scarlet Date: Fri, 20 Aug 2021 11:31:32 +0800 Subject: [PATCH] bug fix --- src/property.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/property.js b/src/property.js index 3b9ad96..accb6da 100644 --- a/src/property.js +++ b/src/property.js @@ -28,13 +28,13 @@ class Property { event = event?.split(',') || []; event = event.map(v=>{ - const value = v.split('*').map(n=>Number(n)); + const value = `${v}`.split('*').map(n=>Number(n)); if(value.length==1) value.push(1); return value; }); if(!Array.isArray(talent)) - talent = talent?.split(',') || []; + talent = `${talent}`?.split(',') || []; talent = talent.map(v=>Number(v));