From 90ce65ea4a752e9e13d684d9d47d9d004db695a9 Mon Sep 17 00:00:00 2001 From: Spmario233 Date: Fri, 13 Nov 2020 15:41:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=95=E6=89=80=E9=80=9A=E9=80=9A=E9=80=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- character/diy.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/character/diy.js b/character/diy.js index 213305c25..977e1dc49 100755 --- a/character/diy.js +++ b/character/diy.js @@ -6214,10 +6214,9 @@ game.import('character',function(lib,game,ui,get,ai,_status){ order:4, result:{ player:function(player){ - if(!player.storage.junktaoluan2) player.storage.junktaoluan2=0; var players=game.filterPlayer(); for(var i=0;i((player.storage.junktaoluan2+1)*2)&&get.attitude(player,players[i])>0){ + if(players[i]!=player&&players[i].countCards('he')&&get.attitude(player,players[i])>0){ return 1; } } @@ -6312,13 +6311,12 @@ game.import('character',function(lib,game,ui,get,ai,_status){ viewAs:{name:'shan'}, check:function(card){ var player=_status.event.player; - if(!player.storage.junktaoluan2) player.storage.junktaoluan2=0; var allshown=true,players=game.filterPlayer(); for(var i=0;i((player.storage.junktaoluan2+1)*2)&&get.attitude(player,players[i])>0){ + if(players[i]!=player&&players[i].countCards('he')&&get.attitude(player,players[i])>0){ return 6-get.value(card); } } @@ -6371,13 +6369,12 @@ game.import('character',function(lib,game,ui,get,ai,_status){ check:function(card){ var player=_status.event.player; if(player.isPhaseUsing()) return 0; - if(!player.storage.junktaoluan2) player.storage.junktaoluan2=0; var allshown=true,players=game.filterPlayer(); for(var i=0;i((player.storage.junktaoluan2+1)*2)&&get.attitude(player,players[i])>0){ + if(players[i]!=player&&players[i].countCards('he')&&get.attitude(player,players[i])>0){ return 6-get.value(card); } }