This commit is contained in:
mengxinzxz 2024-02-02 11:49:19 +08:00
parent 529f93b0cd
commit e36c497ef6
1 changed files with 3 additions and 3 deletions

View File

@ -180,11 +180,11 @@ game.import('character',function(lib,game,ui,get,ai,_status){
mod:{
targetEnabled(card,player,target){
const list=lib.skill.dczixi.zixiList;
if(!list.includes(card.name)&&!list.includes('dczixi_'+card.name)) return;
if(card.name.indexOf('dczixi_')==0){
if(target.hasJudge(card.name.slice('dczixi_'.length))) return false;
const name=card.name.slice('dczixi_'.length);
if(list.includes(name)&&target.hasJudge(name)) return false;
}
else if(target.hasJudge('dczixi_'+card.name)) return false;
else if(list.includes(card.name)&&target.hasJudge('dczixi_'+card.name)) return false;
},
},
ai:{