From b7bea6ea992318b6202e18e5f7ae6002161e0b40 Mon Sep 17 00:00:00 2001 From: mengxinzxz <2223529500@qq.com> Date: Thu, 7 Mar 2024 19:14:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DOL=E9=99=86=E5=87=AF=E3=80=90?= =?UTF-8?q?=E7=8E=84=E6=B3=A8=E3=80=91ai=E5=BC=B9=E7=AA=97bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- character/sp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/character/sp.js b/character/sp.js index 3e3e3b04d..0887f4c77 100755 --- a/character/sp.js +++ b/character/sp.js @@ -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);