From 35440556ad7f4bc71b455601be58320308ce609e Mon Sep 17 00:00:00 2001 From: mengxinzxz <139629761+mengxinzxz@users.noreply.github.com> Date: Thu, 5 Oct 2023 18:16:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=A0=E7=BA=AE=E3=80=90=E5=8A=9D=E8=BF=81?= =?UTF-8?q?=E3=80=91ai=20bugfix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- character/tw.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/character/tw.js b/character/tw.js index ca91dbf22..3634b39ed 100644 --- a/character/tw.js +++ b/character/tw.js @@ -320,10 +320,10 @@ game.import('character',function(lib,game,ui,get,ai,_status){ '观看'+str+'的手牌并获得其一种花色的所有手牌', ]).set('ai',()=>{ var player=_status.event.player; - var target=_status.event.getParent().target; + var target=_status.event.target; if(target.countCards('h')-player.countCards('h')>target.countCards('h')/4||get.attitude(player,target)>0) return 0; return 1; - }); + }).set('target',target); } 'step 3' if(result.index==0){