bugfix
This commit is contained in:
parent
e36c497ef6
commit
37f4a02600
|
@ -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:{
|
||||||
|
|
Loading…
Reference in New Issue