fix while(remove) in identity

This commit is contained in:
kuangshen04 2023-11-02 15:14:54 +08:00
parent 6443b2db9a
commit bc22e8b103
1 changed files with 3 additions and 1 deletions

View File

@ -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<ban_identity.length;i++){
while(identityList2.remove(ban_identity[i]));
while(identityList2.includes(ban_identity[i])){
identityList2.remove(ban_identity[i]);
}
}
ban_identity=identityList2.randomGet();
identityList.remove(ban_identity);