This commit is contained in:
Vick Scarlet
2021-08-20 11:31:32 +08:00
parent 40b23c6288
commit f193389455

View File

@@ -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));