From 2d1d7436479521fa2ff52ebbf11bfd381f861634 Mon Sep 17 00:00:00 2001 From: mengxinzxz <2223529500@qq.com> Date: Sat, 2 Dec 2023 13:38:29 +0800 Subject: [PATCH] bugfix --- character/clan.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/character/clan.js b/character/clan.js index 339498f03..0a660d7a2 100644 --- a/character/clan.js +++ b/character/clan.js @@ -764,6 +764,9 @@ game.import('character',function(lib,game,ui,get,ai,_status){ charlotte:true, trigger:{global:'phaseEnd'}, filter:function(event,player){ + var cards=player.getStorage('clanmingjie_record').slice(); + cards=cards.filterInD('d'); + if(!cards.length) return false; var history=player.getHistory('useSkill',evt=>evt.skill=='clanmingjie'); if(history.length){ var targets=history.reduce((list,evt)=>list.addArray(evt.targets),[]); @@ -788,10 +791,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ 'step 0' var cards=player.getStorage('clanmingjie_record').slice(); cards=cards.filterInD('d'); - if(cards.length){ - event.cards=cards; - } - else event.goto(4); + event.cards=cards; 'step 1' player.chooseButton(['铭戒:是否使用这些牌?',cards]).set('filterButton',button=>{ return _status.event.player.hasUseTarget(button.link); @@ -806,7 +806,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ game.delayx(); player.chooseUseTarget(card,true); } - else event.goto(4); + else event.finish(); 'step 3' if(event.cards.filter(card=>{ return get.position(card,true)=='d'&&player.hasUseTarget(card);