This commit is contained in:
libccy 2017-02-22 20:44:13 +08:00
parent 06e3c61536
commit 51d91e85ab
1 changed files with 18 additions and 17 deletions

View File

@ -11670,12 +11670,6 @@
else if(next.card==undefined){ else if(next.card==undefined){
if(next.cards){ if(next.cards){
next.card=next.cards[0]; next.card=next.cards[0];
if(!next.skill){
var info=get.info(next.card);
if(info.autoViewAs){
next.card={name:info.autoViewAs,suit:next.card.suit,number:next.card.number};
}
}
} }
} }
if(!next.targets){ if(!next.targets){
@ -11683,7 +11677,15 @@
} }
if(next.card){ if(next.card){
var info=get.info(next.card); var info=get.info(next.card);
if(info){ if(info.autoViewAs){
next.card={
name:info.autoViewAs,
suit:next.card.suit,
number:next.card.number,
nature:next.card.nature
};
info=get.info(next.card);
}
if(info.changeTarget){ if(info.changeTarget){
info.changeTarget(next.player,next.targets); info.changeTarget(next.player,next.targets);
} }
@ -11696,7 +11698,6 @@
} }
} }
} }
}
for(var i=0;i<next.targets.length;i++){ for(var i=0;i<next.targets.length;i++){
if(ai.get.attitude(this,next.targets[i])>=-1&&ai.get.attitude(this,next.targets[i])<0){ if(ai.get.attitude(this,next.targets[i])>=-1&&ai.get.attitude(this,next.targets[i])<0){
if(!this.ai.tempIgnore) this.ai.tempIgnore=[]; if(!this.ai.tempIgnore) this.ai.tempIgnore=[];