From 3261572365f48ac61099a07cdf6c2e78a41fbc3e Mon Sep 17 00:00:00 2001 From: unanmed <1319491857@qq.com> Date: Sun, 17 Nov 2024 14:35:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=9C=86=E4=B8=8E=E7=9F=A9=E5=BD=A2?= =?UTF-8?q?=E7=9B=B8=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugin/boss/barrage.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugin/boss/barrage.ts b/src/plugin/boss/barrage.ts index c525a3a..544c517 100644 --- a/src/plugin/boss/barrage.ts +++ b/src/plugin/boss/barrage.ts @@ -414,7 +414,7 @@ export namespace Hitbox { const { x: cx, y: cy, radius: r } = circle; const { x, y, w, h } = rect; - if (cx > x && cx < x + w && cy > y && cy < y + h) return false; + if (cx > x && cx < x + w && cy > y && cy < y + h) return true; // 找到圆心到矩形的最近点 const closestX = Math.max(x, Math.min(cx, x + w));