曹爽【渐专】重铸项bugfix

This commit is contained in:
mengxinzxz 2024-03-11 12:03:30 +08:00
parent 85f24a559e
commit fbf9bdd22b
1 changed files with 5 additions and 3 deletions

View File

@ -200,6 +200,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
return 1; return 1;
}, },
async content(player,num=1){ async content(player,num=1){
if(!player.hasCard(lib.filter.cardRecastable,'he')) return;
const {result:{bool,cards}}=await player.chooseCard('重铸'+num+'张牌','he',num,lib.filter.cardRecastable,true).set('ai',lib.skill.zhiheng.check); const {result:{bool,cards}}=await player.chooseCard('重铸'+num+'张牌','he',num,lib.filter.cardRecastable,true).set('ai',lib.skill.zhiheng.check);
if(bool) await player.recast(cards); if(bool) await player.recast(cards);
}, },
@ -304,11 +305,12 @@ game.import('character',function(lib,game,ui,get,ai,_status){
if(!player.getStorage('dcjianzhuan').includes(i)) choices.push(i); if(!player.getStorage('dcjianzhuan').includes(i)) choices.push(i);
} }
if(choices.length){ if(choices.length){
const choice=choices.randomGet(); for(const choice of choices){
for(let i=1;i<=3;i++){ for(let i=1;i<=3;i++){
await info[choice].content(player,1); await info[choice].content(player,1);
} }
} }
}
await player.gainMaxHp(2); await player.gainMaxHp(2);
await player.recover(2); await player.recover(2);
await player.changeSkills(['dcfudou'],['dcjianzhuan']); await player.changeSkills(['dcfudou'],['dcjianzhuan']);