From 3c14fcae7f134747f3a5f28f6003473c64046849 Mon Sep 17 00:00:00 2001 From: 157 <3619242020@qq.com> Date: Wed, 24 Jan 2024 11:34:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E3=80=90=E6=AF=92=E3=80=91?= =?UTF-8?q?=E8=B5=A0=E4=BA=88=E5=BC=B9=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- card/yongjian.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/card/yongjian.js b/card/yongjian.js index e8bbf0af6..4209a7f77 100644 --- a/card/yongjian.js +++ b/card/yongjian.js @@ -527,15 +527,15 @@ game.import('card',function(lib,game,ui,get,ai,_status){ if(event.name=='phase'){ if(game.phaseNumber!=0) return false; if(!player._start_cards) return false; - var hs=player.getCards('h'); - for(var card of player._start_cards){ + let hs=player.getCards('h'); + for(let card of player._start_cards){ if(get.name(card,player)=='du'&&hs.includes(card)) return true; } } else{ if(event.getParent().name!='draw') return false; - var hs=player.getCards('h'); - for(var card of event.cards){ + let hs=player.getCards('h'); + for(let card of event.getg(player)){ if(get.name(card,player)=='du'&&hs.includes(card)) return true; } }