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--;