From 5e8090b33b2f99f7271383a0b93d77ae0c2ab6c5 Mon Sep 17 00:00:00 2001 From: shijian <2954700422@qq.com> Date: Sat, 9 Dec 2023 14:18:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=87=E5=87=86=E5=8C=85zhongyi=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 f25e49c7d..13a922e76 100755 --- a/character/standard.js +++ b/character/standard.js @@ -1033,10 +1033,10 @@ game.import('character',function(lib,game,ui,get,ai,_status){ }, discard:false, lose:false, - content:function(){ + async content(event,trigger,player){ player.awakenSkill('zhongyi'); player.addTempSkill('zhongyi2','roundStart'); - player.addToExpansion(player,'give',cards).gaintag.add('zhongyi2'); + await player.promise.addToExpansion(player,'give',event.cards).gaintag.add('zhongyi2'); }, }, zhongyi2:{