标准包fankui技能使用async content
This commit is contained in:
parent
f63d5be2e5
commit
e1d5866ead
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue