From a8496d34a0bebc58fb6da00d96c755d95dbd2609 Mon Sep 17 00:00:00 2001 From: libccy Date: Thu, 12 May 2016 21:11:22 +0800 Subject: [PATCH] fix --- character/yijiang.js | 57 ++++++++++++++++++++++++++++++++++++-- layout/mobile/equip.css | 2 +- layout/newlayout/equip.css | 2 +- 3 files changed, 57 insertions(+), 4 deletions(-) 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