标准包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);
|
return target.isFriendOf(player);
|
||||||
}).length>0
|
}).length>0
|
||||||
},
|
},
|
||||||
content:function(){
|
async content(event,trigger,player){
|
||||||
player.awakenSkill('zhanshen');
|
player.awakenSkill('zhanshen');
|
||||||
var card=player.getEquips(1);
|
const cards=player.getEquips(1);
|
||||||
if(cards.length) player.discard(card);
|
if(cards.length) await player.promises.discard(cards);
|
||||||
player.loseMaxHp();
|
await player.promises.loseMaxHp();
|
||||||
player.addSkill('mashu');
|
player.addSkill('mashu');
|
||||||
player.addSkill('shenji');
|
player.addSkill('shenji');
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue