Merge pull request #803 from PZ157/PR-Branch

bug修复
This commit is contained in:
Spmario233 2024-01-17 19:57:21 +08:00 committed by GitHub
commit ef8a261006
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -2663,7 +2663,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
},
ai:{
order:function(item,player){
var num=player.getStorage('zyquanji').length;
var num=player.getExpansions('zyquanji').length;
if(num==1) return 8;
return 1;
},

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,