This commit is contained in:
mengxinzxz 2024-02-02 12:05:30 +08:00
parent e36c497ef6
commit 37f4a02600
1 changed files with 5 additions and 4 deletions

View File

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