标准包zhanshen技能使用async content

This commit is contained in:
shijian 2023-12-09 15:37:00 +08:00
parent 9c9f9d04c2
commit 4247130d28
1 changed files with 4 additions and 4 deletions

View File

@ -2144,11 +2144,11 @@ game.import('character',function(lib,game,ui,get,ai,_status){
return target.isFriendOf(player);
}).length>0
},
content:function(){
async content(event,trigger,player){
player.awakenSkill('zhanshen');
var card=player.getEquips(1);
if(cards.length) player.discard(card);
player.loseMaxHp();
const cards=player.getEquips(1);
if(cards.length) await player.promises.discard(cards);
await player.promises.loseMaxHp();
player.addSkill('mashu');
player.addSkill('shenji');
},