From 34ca879f9356f3e9bef2e5fa41a76be17f93295b 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: Sat, 6 Sep 2025 09:34:58 +0800 Subject: [PATCH] =?UTF-8?q?fix(Weapon):=20=E4=BF=AE=E5=A4=8D=E6=94=BB?= =?UTF-8?q?=E5=87=BB=E5=87=BD=E6=95=B0=E6=9C=AA=E8=BF=94=E5=9B=9E=E7=BB=93?= =?UTF-8?q?=E6=9E=9C=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/Structs/Weapon.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Structs/Weapon.gd b/scripts/Structs/Weapon.gd index 70e71d2..14f2bde 100644 --- a/scripts/Structs/Weapon.gd +++ b/scripts/Structs/Weapon.gd @@ -113,7 +113,7 @@ func playSound(sound: String): func tryAttack(entity: EntityBase): if cooldownTimer.start(): if entity.useEnergy(needEnergy): - attack(entity) + return attack(entity) # 抽象 func update(_to: int, _origin: Dictionary, _entity: EntityBase):