From 5f3002ad20c6b2b7dd541f3ed209b31e2a3bb7c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=A8=E8=90=BD=E5=9F=BA=E5=9B=B4=E8=99=BE?= <3161880837@qq.com> Date: Thu, 30 Apr 2026 18:35:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3=E5=87=BB=E9=80=80?= =?UTF-8?q?=E6=95=88=E6=9E=9C=E7=9A=84=E6=96=B9=E5=90=91=E8=AE=A1=E7=AE=97?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将击退方向从 (position - entity.position) 改为 (entity.position - position),确保实体被正确击退 --- scripts/Contents/Bullets/Parrier.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Contents/Bullets/Parrier.gd b/scripts/Contents/Bullets/Parrier.gd index b736734..52a614a 100644 --- a/scripts/Contents/Bullets/Parrier.gd +++ b/scripts/Contents/Bullets/Parrier.gd @@ -22,7 +22,7 @@ func penerateEffect(entity: EntityBase): var eff = EffectController.create(ComponentManager.getEffect("ParryEntity"), position) eff.rotation = position.angle_to_point(position) eff.shot() - entity.impluse((position - entity.position).normalized() * 450) + entity.impluse((entity.position - position).normalized() * 450) func generateParryBall(targetBaseDamage: float): var cycler = launcher.getOrCreateCycleTimer("parry", 2000, 100) if len(cycler.bullets) < maxBallCount: # 玩家最多只能拥有多少气