From 0fdd3750ede636200decaabc27cf6dbcaf3ef2f4 Mon Sep 17 00:00:00 2001 From: Spmario233 Date: Thu, 14 Mar 2024 13:10:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9E=AD=E5=A7=AC=E6=94=B9=E4=B8=BA=E6=96=B0?= =?UTF-8?q?=E5=86=99=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- character/standard.js | 18 ++++-------------- mode/guozhan.js | 5 +++++ 2 files changed, 9 insertions(+), 14 deletions(-) diff --git a/character/standard.js b/character/standard.js index 768806574..4eefab587 100755 --- a/character/standard.js +++ b/character/standard.js @@ -1760,23 +1760,13 @@ game.import('character',function(lib,game,ui,get,ai,_status){ global:['equipAfter','addJudgeAfter','gainAfter','loseAsyncAfter','addToExpansionAfter'], }, frequent:true, - filter(event,player){ + getIndex(event, player){ const evt=event.getl(player); - return evt&&evt.player==player&&evt.es&&evt.es.length>0; + if (evt && evt.player === player && evt.es) return evt.es.length; + return false; }, async content(event,trigger,player){ - event.count=trigger.getl(player).es.length; - while(event.count-->0){ - player.draw(2); - if(!event.count||!player.hasSkill(event.name)) break; - if(!get.is.blocked(event.name,player)){ - const chooseBoolEvent=player.chooseBool(get.prompt2('xiaoji')).set('frequentSkill','xiaoji'); - chooseBoolEvent.ai=lib.filter.all; - const {result:{bool}}=await chooseBoolEvent; - if(bool) player.logSkill('xiaoji'); - else break; - } - } + player.draw(2); }, ai:{ noe:true, diff --git a/mode/guozhan.js b/mode/guozhan.js index b19eeb16b..9048d4eda 100644 --- a/mode/guozhan.js +++ b/mode/guozhan.js @@ -12797,6 +12797,11 @@ return event.junling=='junling5'?1:0;}); inherit:'xiaoji', audio:'xiaoji', preHidden:true, + getIndex(event, player){ + const evt=event.getl(player); + if (evt && evt.player === player && evt.es) return 1; + return false; + }, content:function(){ player.draw(player==_status.currentPhase?1:3); }