From 880997d90ac3e3e992471f59a87892b96a0ef26b Mon Sep 17 00:00:00 2001 From: mengxinzxz <139629761+mengxinzxz@users.noreply.github.com> Date: Sat, 7 Oct 2023 22:26:57 +0800 Subject: [PATCH] =?UTF-8?q?TW=E8=92=8B=E9=92=A6=E4=BA=8C=E6=8A=80=E8=83=BD?= =?UTF-8?q?init=E5=9B=9E=E5=90=88=E5=A4=96=E8=8E=B7=E5=BE=97=E6=AD=A4?= =?UTF-8?q?=E6=8A=80=E8=83=BD=E4=B9=9F=E4=BC=9A=E5=A2=9E=E5=8A=A0=E6=94=BB?= =?UTF-8?q?=E5=87=BB=E8=8C=83=E5=9B=B4=E7=9A=84bug=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=EF=BC=8C=E6=94=BB=E5=87=BB=E8=8C=83=E5=9B=B45=E4=B8=8A?= =?UTF-8?q?=E9=99=90=E6=95=88=E6=9E=9C=E4=B8=8D=E5=AD=98=E5=9C=A8bug?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- character/tw.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/character/tw.js b/character/tw.js index 3634b39ed..b7aec0358 100644 --- a/character/tw.js +++ b/character/tw.js @@ -4570,6 +4570,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){ forced:true, logTarget:'target', init:function(player){ + var target=_status.currentPhase; + if(!target||!target!=player) return; if(!player.getStorage('twxiangyu_range').length){ var targets=game.filterPlayer(current=>{ return current.getHistory('lose').length; @@ -4591,7 +4593,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ }, mod:{ attackRange:function(player,num){ - return num+player.getStorage('twxiangyu_range').length; + return num+Math.min(5,player.getStorage('twxiangyu_range').length); }, }, subSkill:{ @@ -4622,7 +4624,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ marktext:'羽', intro:{ content:function(storage,player){ - var num=storage?storage.length:0; + var num=Math.min(5,storage?storage.length:0); return '攻击范围+'+num; }, },