From fef30f424c8abb18c188c5426191c2e718cecfc2 Mon Sep 17 00:00:00 2001 From: MDYY1 <2741562754@qq.com> Date: Fri, 24 Nov 2023 19:32:29 +0800 Subject: [PATCH] bugfix --- game/game.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/game/game.js b/game/game.js index 098c76f59..c4ce75448 100644 --- a/game/game.js +++ b/game/game.js @@ -27396,7 +27396,14 @@ new Promise(resolve=>{ subplayer:true } } - lib.character[skill]=[cfg.sex,cfg.group,cfg.maxHp,cfg.skills,['character:'+cfg.name]]; + lib.character[skill]=[cfg.sex,cfg.group,cfg.maxHp,cfg.skills,[]]; + if(Array.isArray(cfg.image)){ + cfg.image.forEach(image=>lib.character[skill][4].push(image)); + }else if(typeof cfg.image=='string'){ + lib.character[skill][4].push(cfg.image); + }else{ + lib.character[skill][4].push('character:'+cfg.name); + } lib.translate[skill]=cfg.caption||get.rawName(cfg.name); player.storage[skill]=cfg; },this,skill,cfg); @@ -61442,7 +61449,7 @@ new Promise(resolve=>{ ||(item.cardtags&&item.cardtags.contains(tag)), tag:(item,tag,item2,bool)=>{ var result; - if(get.info(item)&&get.info(item).ai&&get.info(item).ai.tag){ + if(get.info(item,bool)&&get.info(item,bool).ai&&get.info(item,bool).ai.tag){ result=get.info(item,bool).ai.tag[tag]; } if(typeof result=='function') return result(item,item2);