From 4c18380ea3b9737d3447eb0f69be081bbdd49082 Mon Sep 17 00:00:00 2001 From: shijian <2954700422@qq.com> Date: Sat, 9 Dec 2023 15:39:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=87=E5=87=86=E5=8C=85lijian=E6=8A=80?= =?UTF-8?q?=E8=83=BD=E4=BD=BF=E7=94=A8async=20content?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- character/standard.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/character/standard.js b/character/standard.js index ce746cc32..be97c5996 100755 --- a/character/standard.js +++ b/character/standard.js @@ -2189,9 +2189,11 @@ game.import('character',function(lib,game,ui,get,ai,_status){ targetprompt:['先出杀','后出杀'], selectTarget:2, multitarget:true, - content:function(){ - targets[1].useCard({name:'juedou',isCard:true},'nowuxie',targets[0],'noai').animate=false; - game.delay(0.5); + async content(event,trigger,player){ + const useCardEvent=event.targets[1].useCard({name:'juedou',isCard:true},'nowuxie',event.targets[0],'noai'); + useCardEvent.animate = false; + await useCardEvent; + await game.asyncDelay(0.5); }, ai:{ order:8,