修复stdkuangfu技能没使用await的bug

This commit is contained in:
shijian 2023-12-09 15:55:55 +08:00
parent cac9ab08f0
commit 5bdafa9de2
1 changed files with 2 additions and 2 deletions

View File

@ -121,8 +121,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){
return player.isPhaseUsing()&&event.card&&event.card.name=='sha'&&event.player!=player&&event.player.isIn();
},
async content(event,trigger,player){
if(trigger.player.hp<player.hp) player.promises.draw(2);
else player.promises.loseHp();
if(trigger.player.hp<player.hp) await player.promises.draw(2);
else await player.promises.loseHp();
},
ai:{
halfneg:true,