标准包zhanshen技能使用async content
This commit is contained in:
parent
9c9f9d04c2
commit
4247130d28
|
@ -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');
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue