diff --git a/character/yijiang.js b/character/yijiang.js index d447910a3..cf13927de 100644 --- a/character/yijiang.js +++ b/character/yijiang.js @@ -8046,7 +8046,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ for(var i=0;i0&&!players[i].hasSha()){ - return (button.link[2]=='juedou')?2:-1; + juedou=true; } - if(player.canUse('shunshou',players[i])&&get.attitude(player,players[i])<0){ + if(player.canUse('shunshou',players[i])&&get.attitude(player,players[i])<-1){ shunshou=true; } if(players[i].countCards('j')&&get.attitude(player,players[i])>2){ @@ -1152,9 +1154,11 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ } } } - if(guohe) return (button.link[2]=='guohe')?1.5:-1; - if(shunshou) return (button.link[2]=='shunshou')?1:-1; - return (button.link[2]=='wuzhong')?1:-1; + if(juedou&&button.link[2]=='juedou') return 3; + if(guohe&&button.link[2]=='guohe') return 2; + if(shunshou&&button.link[2]=='shunshou') return 1.5; + if(button.link[2]=='wuzhong') return 1; + return 0; }, backup:function(links,player){ return { @@ -1182,6 +1186,9 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ audio:2, popname:true, viewAs:{name:links[0][2]}, + ai1:function(){ + return 1; + } } }, prompt:function(links,player){ @@ -1198,8 +1205,6 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ for(var i=0;i