修复OL陆凯【玄注】ai弹窗bug

This commit is contained in:
mengxinzxz 2024-03-07 19:14:27 +08:00
parent b1d7ea842e
commit b7bea6ea99
1 changed files with 1 additions and 1 deletions

View File

@ -830,7 +830,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
const getNum=function(card){
if(get.info('xunshi').isXunshi(card)) return get.effect(game.filterPlayer(target=>{
return player.canUse(card,target,true,true);
}).sort((a,b)=>get.effect(b,card,player,player)-get.effect(a,card,player,player)),card,player,player);
}).sort((a,b)=>get.effect(b,card,player,player)-get.effect(a,card,player,player))[0],card,player,player);
return player.getUseValue(card,true,true);
};
return (getNum(b)||0)-(getNum(a)||0);