From fc2ad0a5456a6689b854b69d8e743b5359f02730 Mon Sep 17 00:00:00 2001 From: libccy Date: Mon, 30 May 2016 16:07:55 +0800 Subject: [PATCH] 1 --- card/yunchou.js | 19 +++++++++++++++---- character/hearth.js | 5 +++-- game/game.js | 18 ++++++++++++++++-- mode/versus.js | 16 ++++++++++++---- 4 files changed, 46 insertions(+), 12 deletions(-) diff --git a/card/yunchou.js b/card/yunchou.js index bcf95869b..d256260fe 100644 --- a/card/yunchou.js +++ b/card/yunchou.js @@ -56,7 +56,6 @@ card.yunchou={ multitarget:true, multiline:true, filterTarget:function(card,player,target){ - if(player==target) return true; var num=target.num('h'); for(var i=0;i四号位换牌:'+(lib.configOL.replace_handcard?'开启':'关闭')); } + else if(lib.configOL.versus_mode=='4v4'){ + uiintro.add('
交叉座位:'+(lib.configOL.four_cross?'开启':'关闭')); + } uiintro.add('
出牌时限:'+lib.configOL.choose_timeout+'秒'); uiintro.add('
屏蔽弱将:'+(lib.configOL.ban_weak?'开启':'关闭')); uiintro.add('
屏蔽强将:'+(lib.configOL.ban_strong?'开启':'关闭')).style.paddingBottom='8px'; @@ -1404,8 +1409,11 @@ mode.versus={ var next=game.createEvent('chooseCharacter',false); next.content=function(){ "step 0" - var list=['zhu','zhong','zhong','zhong','ezhu','ezhong','ezhong','ezhong']; - list.randomSort(); + var list=['zhong','ezhong','zhong','ezhong','zhong','ezhong','zhong','ezhong']; + list[2*Math.floor(Math.random()*4)]='zhu'; + list[2*Math.floor(Math.random()*4)+1]='ezhu'; + if(!lib.configOL.four_cross) list.randomSort(); + var side=Math.random()<0.5; var map={}; for(var i=0;i<8;i++){