From 2fa474b4e7e4167abfcf33f9fe7e2b18fd7c73e7 Mon Sep 17 00:00:00 2001 From: shijian <2954700422@qq.com> Date: Sat, 9 Dec 2023 15:27:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=87=E5=87=86=E5=8C=85jieyin=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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/character/standard.js b/character/standard.js index 1bb078e9d..b4c75ec1a 100755 --- a/character/standard.js +++ b/character/standard.js @@ -1842,9 +1842,9 @@ game.import('character',function(lib,game,ui,get,ai,_status){ if(target==player) return false; return true; }, - content:function(){ - player.recover(); - target.recover(); + async content(event,trigger,player){ + await player.promises.recover(); + await event.target.promises.recover(); }, ai:{ order:5.5,