diff --git a/character/gujian.js b/character/gujian.js index c11786d40..46a80aa21 100644 --- a/character/gujian.js +++ b/character/gujian.js @@ -12,10 +12,258 @@ character.gujian={ gjqt_xiayize:['male','qun',3,['xuanning','liuguang','yangming']], gjqt_aruan:['female','wu',3,['zhaolu','jiehuo','yuling']], - // gjqt_xunfang:['female','shu',3,['zhaolu','jiehuo','yuling']], - // gjqt_ouyangshaogong:['male','shu',3,['zhaolu','jiehuo','yuling']], + gjqt_xunfang:['female','shu',3,['qingwu','xfanghua']], + gjqt_ouyangshaogong:['male','shu',3,['yunyin','shishui','duhun']], }, skill:{ + qingwu:{ + trigger:{global:'phaseEnd'}, + check:function(event,player){ + return ai.get.attitude(player,event.player)>0; + }, + filter:function(event,player){ + var nh=event.player.num('h'); + for(var i=0;i0&&target.hp>0&&target.hp<=player.maxHp; + }, + content:function(){ + 'step 0' + player.chooseToCompare(target); + 'step 1' + if(!result.bool){ + player.die(); + event.finish(); + } + else{ + event.num=target.hp-player.hp; + player.loseMaxHp(); + } + 'step 2' + player.changeHp(event.num); + 'step 3' + event.target.changeHp(-event.num); + 'step 4' + if(event.target.hp<=0){ + event.target.dying({source:player}); + } + }, + ai:{ + order:1, + skillTagFilter:function(player){ + if(player.maxHp<=1) return false; + if(player.hp>0) return false; + if(player.num('h')==0) return false; + }, + save:true, + result:{ + target:-1, + player:1 + }, + threaten:2 + }, + }, + yunyin:{ + trigger:{player:'phaseEnd'}, + direct:true, + subSkill:{ + count:{ + trigger:{player:'useCard'}, + forced:true, + popup:false, + silent:true, + filter:function(event,player){ + return _status.currentPhase==player; + }, + content:function(){ + if(!player.storage.yunyin){ + player.storage.yunyin=[]; + } + var suit=get.suit(trigger.card); + if(suit){ + player.storage.yunyin.add(suit); + } + } + }, + set:{ + trigger:{player:'phaseAfter'}, + forced:true, + popup:false, + silent:true, + content:function(){ + delete player.storage.yunyin; + } + } + }, + filter:function(event,player){ + if(!player.storage.yunyin) return true; + var hs=player.get('h'); + for(var i=0;i0){ + taoyuan++; + } + else if(eff1<0){ + taoyuan--; + } + if(eff2>0){ + nanman++; + } + else if(eff2<0){ + nanman--; + } + } + if(Math.max(taoyuan,nanman)>1){ + if(taoyuan>nanman) return name=='taoyuan'?1:0; + return name=='nanman'?1:0; + } + if(player.num('h')=2){ + return name=='wuzhong'?1:0; + } + if(player.hp