From 37d8667b4548ca1d4d3937159849be47614602b3 Mon Sep 17 00:00:00 2001 From: 157 <3619242020@qq.com> Date: Wed, 24 Jan 2024 14:49:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BA=9E=E5=B1=B1=E6=B0=91?= =?UTF-8?q?=E3=80=90=E6=89=8D=E6=80=9D=E3=80=91=E5=8F=91=E5=8A=A8=E6=AC=A1?= =?UTF-8?q?=E6=95=B0bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- character/huicui.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/character/huicui.js b/character/huicui.js index 56ffc3dee..2afc204ad 100644 --- a/character/huicui.js +++ b/character/huicui.js @@ -757,7 +757,11 @@ game.import('character',function(lib,game,ui,get,ai,_status){ trigger:{player:'useCardAfter'}, filter:function(event,player){ if(get.type(event.card)!='basic') return false; - if(player.getHistory('gain',evt=>evt.getParent().name=='dccaisi').length>player.maxHp) return false; + if(player.getHistory('gain',evt=>{ + return evt.getParent().name==='dccaisi'; + }).reduce((num,evt)=>{ + return num+evt.cards.length; + },0)>player.maxHp) return false; return _status.currentPhase; }, prompt2:function(event,player){