From 350e95b6fd12beea2485428fd03ec332e0de1184 Mon Sep 17 00:00:00 2001 From: 157 <3619242020@qq.com> Date: Wed, 17 Jan 2024 18:42:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E3=80=90=E6=9E=AD=E5=A7=AC?= =?UTF-8?q?=E3=80=91=E5=A4=9A=E5=8F=91=E5=8A=A8=E4=B8=80=E6=AC=A1=E7=9A=84?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- character/standard.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/character/standard.js b/character/standard.js index a026971f6..d02168c86 100755 --- a/character/standard.js +++ b/character/standard.js @@ -1761,9 +1761,9 @@ game.import('character',function(lib,game,ui,get,ai,_status){ }, async content(event,trigger,player){ event.count=trigger.getl(player).es.length; - do { + while(event.count-->0){ player.draw(2); - if(!player.hasSkill(event.name)) break; + 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; @@ -1771,7 +1771,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ if(bool) player.logSkill('xiaoji'); else break; } - }while(event.count-->0); + } }, ai:{ noe:true,