From 19d36a8532a5f64dcb2e2465419459e72a8e0770 Mon Sep 17 00:00:00 2001 From: walkpan Date: Sat, 3 Jan 2026 00:01:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B0=83=E6=95=B4=E6=8A=80=E8=83=BD?= =?UTF-8?q?=E6=96=BD=E6=94=BE=E6=97=B6=E7=9A=84=E9=AB=98=E5=BA=A6=E5=81=8F?= =?UTF-8?q?=E7=A7=BB=E9=87=8F=E4=BB=8E50=E9=99=8D=E8=87=B330?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 统一技能施放和目标检测时的高度偏移量,使逻辑更加一致 --- assets/script/game/hero/SACastSystem.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/script/game/hero/SACastSystem.ts b/assets/script/game/hero/SACastSystem.ts index 667a48c8..8306aa10 100644 --- a/assets/script/game/hero/SACastSystem.ts +++ b/assets/script/game/hero/SACastSystem.ts @@ -253,7 +253,7 @@ export class SACastSystem extends ecs.ComblockSystem implements ecs.ISystemUpdat // 获取施法者位置作为起始位置 const startPos = caster.node.position.clone(); - startPos.y += 50; + startPos.y += 30; const targetPos = targets[0]; // 使用第一个目标位置 // console.log(`[SACastSystem]: ${s_uuid}, 起始位置: ${startPos}, 目标位置: ${targetPos}`); @@ -329,7 +329,7 @@ export class SACastSystem extends ecs.ComblockSystem implements ecs.ISystemUpdat if (model.is_dead) return false; if (model.fac === fac) return false; const pos = view.node.position.clone(); - pos.y += 50; + pos.y += 30; const dist = Math.abs(currentPos.x - pos.x); if (dist <= range) { const laneBias = Math.abs(currentPos.y - pos.y);