From 07446eb830b5e396c5e3e9d74f4c674a044eda3b Mon Sep 17 00:00:00 2001 From: mengxinzxz <2223529500@qq.com> Date: Sun, 21 Jan 2024 15:54:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=8B=E6=9D=80=E9=9C=8D=E9=AA=8F=E3=80=90?= =?UTF-8?q?=E7=AB=AD=E5=BE=A1=E3=80=91bugfix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- character/mobile.js | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/character/mobile.js b/character/mobile.js index f0eb124ef..c7a38fd83 100644 --- a/character/mobile.js +++ b/character/mobile.js @@ -482,32 +482,34 @@ game.import('character',function(lib,game,ui,get,ai,_status){ audio:'twjieyu', trigger:{player:'phaseJieshuBegin'}, filter:function(event,player){ - for(var i=0;i1?'牌名各不相同的':'')+'基本牌'; }, async content(event,trigger,player){ - const num=lib.skill.jieyu.getNum(player,false); - let gains=[],names=lib.inpile.filter(name=>get.type(name)=='basic').randomGets(num); - names.forEach(name=>{ - let card=get.discardPile(card=>card.name==name); - if(name) gains.push(card); - }); - if(gains.length) player.gain(gains,'gain2'); + const num=lib.skill.jieyu.getNum(player,event); + let gains=[],names=[]; + for(let i=0;i=0;i--){ const evt=history[i]; - if(evt.name=='useSkill'&&evt.player==player&&evt.skill=='jieyu'){ - if(!bool) bool=true; - else break; + if(evt.name=='jieyu'&&evt.player==player){ + if(!event||evt!=event) break; } if(evt.name=='useCard'&&evt.player!=player&&evt.targets&&evt.targets.includes(player)&&get.tag(evt.card,'damage')){ num--;