From 1ff5406339f2a5ffed1ee567b6d161f642db680a Mon Sep 17 00:00:00 2001 From: 157 <3619242020@qq.com> Date: Thu, 4 Jan 2024 22:26:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=99=9A=E6=8B=9F=E8=A7=92?= =?UTF-8?q?=E8=89=B2=E5=9B=BE=E7=89=87=E4=B8=8D=E6=B6=88=E5=A4=B1=E7=9A=84?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit maybe? --- character/sb.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/character/sb.js b/character/sb.js index dd1fc42e7..922f27568 100644 --- a/character/sb.js +++ b/character/sb.js @@ -1814,7 +1814,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ } return 0; }, - selectTargetAi:function(event,player){ + selectTargetAi:(event,player)=>{ let cache=_status.event.getTempCache('sblijian','targets'); if(Array.isArray(cache)) return cache.length; let targets=[],cards=[0],sbbiyue=player.hasSkill('sbbiyue')?Math.max(0,3-game.countPlayer2(current=>{ @@ -1822,7 +1822,9 @@ game.import('character',function(lib,game,ui,get,ai,_status){ })):0,alter=[null,1,1],temp; for(let i of game.players){ if(player===i) continue; - temp=get.effect(i,new lib.element.VCard({name:'juedou',isCard:true}),get.copy(i),i); + let vplayer=new lib.element.Player(i); + temp=get.effect(i,new lib.element.VCard({name:'juedou',isCard:true}),vplayer,i); + vplayer.remove(); if(temp){ let att=get.attitude(event.player,i); if(!att&&sbbiyue||att*temp>0) targets.push([i,temp,att]);