From 1ab59753649073d2a2e6831ea31568159613675d Mon Sep 17 00:00:00 2001 From: shijian <2954700422@qq.com> Date: Sat, 9 Dec 2023 12:33:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=87=E5=87=86=E5=8C=85tiandu=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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/character/standard.js b/character/standard.js index d2b6b0a52..f66fa3eea 100755 --- a/character/standard.js +++ b/character/standard.js @@ -540,8 +540,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){ filter:function(event,player){ return get.position(event.result.card,true)=='o'; }, - content:function(){ - player.gain(trigger.result.card,'gain2'); + async content(event,trigger,player){ + await player.promises.gain(trigger.result.card,'gain2'); } }, yiji:{