commit
b5197a430d
|
@ -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];
|
||||||
}
|
}
|
||||||
|
|
|
@ -1667,7 +1667,9 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
||||||
if(ban_identity.length){
|
if(ban_identity.length){
|
||||||
var identityList2=identityList.slice(0);
|
var identityList2=identityList.slice(0);
|
||||||
for(var i=0;i<ban_identity.length;i++){
|
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();
|
ban_identity=identityList2.randomGet();
|
||||||
identityList.remove(ban_identity);
|
identityList.remove(ban_identity);
|
||||||
|
|
Loading…
Reference in New Issue