From 97f52a5ddad873f205f56e851e1d88c75f3d5828 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: Sun, 10 May 2026 23:04:16 +0800 Subject: [PATCH] =?UTF-8?q?fix(EnergyBlock):=20=E4=B8=BA=E4=B8=8D=E5=90=8C?= =?UTF-8?q?=E6=94=BB=E5=87=BB=E7=B1=BB=E5=9E=8B=E6=B7=BB=E5=8A=A0=E9=80=82?= =?UTF-8?q?=E5=BD=93=E7=9A=84=E5=BB=B6=E8=BF=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在攻击动画结束后添加等待时间,确保动画播放完整后再执行后续动作 --- scripts/Contents/Characters/EnergyBlock.gd | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/Contents/Characters/EnergyBlock.gd b/scripts/Contents/Characters/EnergyBlock.gd index efab7eb..a0d6a30 100644 --- a/scripts/Contents/Characters/EnergyBlock.gd +++ b/scripts/Contents/Characters/EnergyBlock.gd @@ -27,6 +27,7 @@ func attack(type: int): for bullet in BulletBase.generate(ComponentManager.getBullet("SwingSword"), self , getTrackingAnchor(), getTrackingAnchor().angle_to_point(currentFocusedPosition)): if bullet is SwingSwordBullet: await bullet.destroied + await TickTool.millseconds(1000) elif type == 1: for bullet in BulletBase.generate(ComponentManager.getBullet("Broom"), self , getTrackingAnchor(), getTrackingAnchor().angle_to_point(currentFocusedPosition)): if is_instance_valid(currentBroom): break @@ -38,6 +39,7 @@ func attack(type: int): await chargeUp() trySprint() currentBroom.animator.play("attack") + await TickTool.millseconds(1000) elif type == 2: for i in 3: for bullet in BulletBase.generate(ComponentManager.getBullet("BroomGun"), self , position, position.angle_to_point(currentFocusedPosition)): @@ -51,6 +53,7 @@ func attack(type: int): bullet.animator.play("rotate") await bullet.destroied fields[FieldStore.Entity.MOVEMENT_SPEED] /= 3 + await TickTool.millseconds(4000) elif type == 4: BulletBase.generate(ComponentManager.getBullet("BroomBoomerang"), self , position, position.angle_to_point(currentFocusedPosition)) elif type == 5: