From ea0292a74fd4b91d3a8c6570f9f4c974d9dac132 Mon Sep 17 00:00:00 2001 From: Spmario233 Date: Tue, 12 Mar 2024 09:50:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=94=A8=E9=97=B4=E8=AE=B8?= =?UTF-8?q?=E6=94=B8=E3=80=90=E6=8B=A9=E4=B8=BB=E3=80=91=E5=8F=AF=E8=83=BD?= =?UTF-8?q?=E6=89=BE=E4=B8=8D=E5=88=B0=E4=B8=BB=E5=85=AC=E7=9A=84Bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- character/offline.js | 1 + 1 file changed, 1 insertion(+) diff --git a/character/offline.js b/character/offline.js index 2d2d67eeb..749ac2e60 100644 --- a/character/offline.js +++ b/character/offline.js @@ -3480,6 +3480,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ usable:1, filter:function(event,player){ var zhu=get.mode()=='identity'?get.zhu(player):game.filterPlayer(i=>i.getSeatNum()==1)[0]; + if(!zhu) return false; return zhu.countGainableCards(player,zhu==player?'ej':'hej'); }, filterTarget:function(card,player,target){