diff --git a/character/offline.js b/character/offline.js index 28affda0c..088f1832a 100644 --- a/character/offline.js +++ b/character/offline.js @@ -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; }, diff --git a/character/standard.js b/character/standard.js index a026971f6..d02168c86 100755 --- a/character/standard.js +++ b/character/standard.js @@ -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,