diff --git a/character/yijiang.js b/character/yijiang.js index 18484984c..9d8888f61 100755 --- a/character/yijiang.js +++ b/character/yijiang.js @@ -145,6 +145,7 @@ character.yijiang={ } var att=ai.get.attitude(event.target,player); event.target.chooseButton(['矫诏',[list,'vcard']],true).set('ai',function(button){ + var att=_status.event.att; if(att<=0){ return button.link=='shan'?1:0; } @@ -232,6 +233,12 @@ character.yijiang={ if(player==target) return false; return lib.filter.filterTarget({name:player.storage.jiaozhao_card},player,target); }, + check:function(card){ + return 8-ai.get.value(card); + }, + ai:{ + order:6 + } }, jiaozhao3:{ trigger:{player:'phaseEnd'}, @@ -3544,7 +3551,7 @@ character.yijiang={ "step 2" if(result.bool){ player.gain(result.target,'gain2'); - player.addTempSkill('jizhi','phaseAfter'); + player.addTempSkill('qiaoshui3','phaseAfter'); } else{ player.gain(result.player,'gain2'); @@ -3562,6 +3569,52 @@ character.yijiang={ } } }, + qiaoshui3:{ + trigger:{player:'useCard'}, + forced:true, + popup:false, + filter:function(event,player){ + var type=get.type(event.card); + return type=='basic'||type=='trick'; + }, + content:function(){ + 'step 0' + player.removeSkill('qiaoshui3'); + var goon=false; + var info=get.info(trigger.card); + if(trigger.targets&&!info.multitarget){ + for(var i=0;i