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();