From 80bf95bf46cc024ad550d212b8086aec00d4782f Mon Sep 17 00:00:00 2001
From: 157 <3619242020@qq.com>
Date: Sun, 28 Jan 2024 15:42:50 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9B=BD=E6=88=98=E7=94=B0?=
=?UTF-8?q?=E8=B1=AB=E3=80=90=E9=9C=87=E8=A2=AD=E3=80=91=E9=80=89=E6=8B=A9?=
=?UTF-8?q?=E9=80=89=E9=A1=B9=E4=B8=80=E5=8D=B4=E5=8F=AF=E4=BB=A5=E6=89=A7?=
=?UTF-8?q?=E8=A1=8C=E9=80=89=E9=A1=B9=E4=BA=8C=E7=9A=84bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
mode/guozhan.js | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/mode/guozhan.js b/mode/guozhan.js
index 2942770c3..5822819e7 100644
--- a/mode/guozhan.js
+++ b/mode/guozhan.js
@@ -1939,9 +1939,9 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
else choiceList[0]=''+choiceList[0]+'';
if(player.countCards('he',function(card){
return get.suit(card)=='diamond'&&get.type2(card)!='trick'&&player.canUse(get.autoViewAs({name:'lebu'},[card]),target);
- })||(player.countCards('he',function(card){
+ })||player.countCards('he',function(card){
return get.suit(card)=='club'&&get.type2(card)!='trick'&&player.canUse(get.autoViewAs({name:'bingliang'},[card]),target);
- }))) list.push('选项二');
+ })) list.push('选项二');
else choiceList[1]=''+choiceList[1]+'';
if(target.isUnseen(2)&&!player.isUnseen(2)) list.push('背水!');
else choiceList[2]=''+choiceList[2]+'';
@@ -1961,10 +1961,9 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
event.choice=result.control;
if(event.choice!='选项二'&&target.countDiscardableCards(player,'he')) player.discardPlayerCard(target,'he',true);
'step 2'
- if(event.choice!='选项一'&&!player.isUnseen(2)&&target.isUnseen(2)&&
- player.hasCard(function(card){
+ if(event.choice!='选项一'&&(player.hasCard(function(card){
return get.suit(card)=='diamond'&&get.type2(card)!='trick'&&player.canUse(get.autoViewAs({name:'lebu'},[card]),target);
- },'he')||(player.hasCard(function(card){
+ },'he')||player.hasCard(function(card){
return get.suit(card)=='club'&&get.type2(card)!='trick'&&player.canUse(get.autoViewAs({name:'bingliang'},[card]),target,false);
},'he'))){
var next=game.createEvent('gzzhenxi_use');