标准包fankui技能使用async content

This commit is contained in:
shijian 2023-12-09 11:06:16 +08:00
parent f63d5be2e5
commit e1d5866ead
1 changed files with 2 additions and 2 deletions

View File

@ -310,8 +310,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){
filter:function(event,player){
return (event.source&&event.source.countGainableCards(player,event.source!=player?'he':'e')&&event.num>0);
},
content:function(){
player.gainPlayerCard(true,trigger.source,trigger.source!=player?'he':'e');
async content(event,trigger,player){
await player.promises.gainPlayerCard(true,trigger.source,trigger.source!=player?'he':'e');
},
ai:{
maixie_defend:true,