reduce漏网之鱼修复

This commit is contained in:
mengxinzxz 2024-01-20 23:43:52 +08:00
parent 6d0d659ba7
commit 2e228eff8e
1 changed files with 4 additions and 1 deletions

View File

@ -128,7 +128,10 @@ game.import('character',function(lib,game,ui,get,ai,_status){
case 2:
return Math.min(5,Math.max(1,game.dead.length));
case 3:
return game.filterPlayer().reduce((list,target)=>list.push(get.recoverEffect(target,player,player)),[]).sort((a,b)=>b-a)[0];
return game.filterPlayer().reduce((list,target)=>{
list.push(get.recoverEffect(target,player,player));
return list;
},[]).sort((a,b)=>b-a)[0];
case 4:
return game.dead.reduce((list,target)=>{
let num=0;