标准包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){ filter:function(event,player){
return (event.source&&event.source.countGainableCards(player,event.source!=player?'he':'e')&&event.num>0); return (event.source&&event.source.countGainableCards(player,event.source!=player?'he':'e')&&event.num>0);
}, },
content:function(){ async content(event,trigger,player){
player.gainPlayerCard(true,trigger.source,trigger.source!=player?'he':'e'); await player.promises.gainPlayerCard(true,trigger.source,trigger.source!=player?'he':'e');
}, },
ai:{ ai:{
maixie_defend:true, maixie_defend:true,