From bc22e8b1037ccea095e0fffa15664db6cd5d076f Mon Sep 17 00:00:00 2001 From: kuangshen04 <2832899707@qq.com> Date: Thu, 2 Nov 2023 15:14:54 +0800 Subject: [PATCH 1/2] fix while(remove) in identity --- mode/identity.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mode/identity.js b/mode/identity.js index 4ea9a2b98..4368169fb 100644 --- a/mode/identity.js +++ b/mode/identity.js @@ -1667,7 +1667,9 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ if(ban_identity.length){ var identityList2=identityList.slice(0); for(var i=0;i Date: Fri, 3 Nov 2023 08:49:41 +0800 Subject: [PATCH 2/2] fix some remove --- game/game.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/game/game.js b/game/game.js index 7fc6f30da..ac6ff1ff2 100644 --- a/game/game.js +++ b/game/game.js @@ -27566,7 +27566,8 @@ } else{ for(var i in this.forbiddenSkills){ - if(this.forbiddenSkills[i].remove(skill)){ + if(this.forbiddenSkills[i].includes(skill)){ + this.forbiddenSkills[i].remove(skill) if(!this.forbiddenSkills[i].length){ delete this.forbiddenSkills[i]; }