标准包xinzhiheng技能使用async content

This commit is contained in:
shijian 2023-12-09 14:40:47 +08:00
parent 8957b3920f
commit f58869b8b6
1 changed files with 4 additions and 6 deletions

View File

@ -1438,11 +1438,9 @@ game.import('character',function(lib,game,ui,get,ai,_status){
return 6-get.value(card) return 6-get.value(card)
}, },
delay:0, delay:0,
content:function(){ async content(event,trigger,player){
'step 0' if(!player.hasSkill('xinzhiheng_delay')) await game.asyncDelayx();
if(!player.hasSkill('xinzhiheng_delay')) game.delayx(); await player.draw(event.cards.length);
'step 1'
player.draw(cards.length);
}, },
group:'xinzhiheng_draw', group:'xinzhiheng_draw',
subSkill:{ subSkill:{
@ -1458,7 +1456,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
} }
return false; return false;
}, },
content:function(){ async content(event,trigger,player){
player.draw(); player.draw();
player.addTempSkill('xinzhiheng_delay','xinzhihengAfter'); player.addTempSkill('xinzhiheng_delay','xinzhihengAfter');
} }