From 3793cf2305cb87478bb3ff83cad6b2f86eaff54a Mon Sep 17 00:00:00 2001 From: libccy Date: Sun, 12 Feb 2017 09:47:39 +0800 Subject: [PATCH] c --- mode/chess.js | 34 ++++++++++++++++------------------ 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/mode/chess.js b/mode/chess.js index 494ebf543..7b523019f 100644 --- a/mode/chess.js +++ b/mode/chess.js @@ -1616,15 +1616,9 @@ mode.chess={ next.player=player; next.setContent(function(){ "step 0" - var passed=false; - for(var i=0;i1){ var nevt=player.chooseTarget('选择下一个行动的角色',function(card,player,target){ return target.side==player.side&&!target.classList.contains('acted'); },true); nevt.chessForceAll=true; + nevt.includeOut=true; nevt.ai=function(target){ var nj=target.num('j'); if(nj){ @@ -1699,9 +1691,15 @@ mode.chess={ return Math.max(0,10-target.hp); } } - else{ + else if(players.length){ event.decided=players[0]; } + else{ + event.player=game.findPlayer(function(current){ + return current.side!=player.side; + }); + event.goto(0); + } "step 3" if(event.decided){ event.decided.phase();