珠联璧合优化

This commit is contained in:
mengxinzxz 2023-08-14 00:57:17 +08:00 committed by GitHub
parent bd28f8720f
commit a083366f37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -16050,7 +16050,9 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
name2=name2.slice(name2.indexOf('_')+1); name2=name2.slice(name2.indexOf('_')+1);
} }
} }
return (lib.perfectPair[name1]&&lib.perfectPair[name1].contains(name2))||(lib.perfectPair[name2]&&lib.perfectPair[name2].contains(name1)); var list=Object.keys(lib.perfectPair).concat(Object.values(lib.perfectPair)).flat(Infinity);
if(!list.contains(name1)||!list.contains(name2)) return false;
return (lib.perfectPair[name1]&&lib.perfectPair[name1].flat(Infinity).contains(name2))||(lib.perfectPair[name2]&&lib.perfectPair[name2].flat(Infinity).contains(name1));
}, },
siege:function(player){ siege:function(player){
if(this.identity=='unknown'||this.hasSkill('undist')) return false; if(this.identity=='unknown'||this.hasSkill('undist')) return false;