fix some remove

This commit is contained in:
kuangshen04 2023-11-03 08:49:41 +08:00
parent bc22e8b103
commit 4734d47bcc
1 changed files with 2 additions and 1 deletions

View File

@ -27566,7 +27566,8 @@
} }
else{ else{
for(var i in this.forbiddenSkills){ 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){ if(!this.forbiddenSkills[i].length){
delete this.forbiddenSkills[i]; delete this.forbiddenSkills[i];
} }