修复【枭姬】多发动一次的bug

This commit is contained in:
157 2024-01-17 18:42:44 +08:00
parent 232c61709e
commit 350e95b6fd
1 changed files with 3 additions and 3 deletions

View File

@ -1761,9 +1761,9 @@ game.import('character',function(lib,game,ui,get,ai,_status){
},
async content(event,trigger,player){
event.count=trigger.getl(player).es.length;
do {
while(event.count-->0){
player.draw(2);
if(!player.hasSkill(event.name)) break;
if(!event.count||!player.hasSkill(event.name)) break;
if(!get.is.blocked(event.name,player)){
const chooseBoolEvent=player.chooseBool(get.prompt2('xiaoji')).set('frequentSkill','xiaoji');
chooseBoolEvent.ai=lib.filter.all;
@ -1771,7 +1771,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
if(bool) player.logSkill('xiaoji');
else break;
}
}while(event.count-->0);
}
},
ai:{
noe:true,