From c1143d5f71a29bb4bb278a1b442ca0d6e6a0e8bc 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: Fri, 8 May 2026 16:39:20 +0800 Subject: [PATCH] =?UTF-8?q?fix(EnergyBlock):=20=E5=90=AF=E7=94=A8=E8=A2=AB?= =?UTF-8?q?=E6=B3=A8=E9=87=8A=E7=9A=84AI=E6=94=BB=E5=87=BB=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 恢复被注释的AI攻击行为代码,使能量块能够执行完整的攻击策略 --- scripts/Contents/Characters/EnergyBlock.gd | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/Contents/Characters/EnergyBlock.gd b/scripts/Contents/Characters/EnergyBlock.gd index cb07ed9..efab7eb 100644 --- a/scripts/Contents/Characters/EnergyBlock.gd +++ b/scripts/Contents/Characters/EnergyBlock.gd @@ -17,11 +17,11 @@ func register(): sprintMultiplier = 30 func ai(): PresetEntityAI.distanceAttack(self , currentFocusedBoss, 0, 300, 0) - # PresetEntityAI.distanceAttack(self , currentFocusedBoss, 500, 1000, 1) - # for i in 5: - # tryAttack(i + 2, [3, 4]) - # if 1 not in attackingStates: - # PresetEntityAI.follow(self , currentFocusedBoss, 200) + PresetEntityAI.distanceAttack(self , currentFocusedBoss, 500, 1000, 1) + for i in 5: + tryAttack(i + 2, [3, 4]) + if 1 not in attackingStates: + PresetEntityAI.follow(self , currentFocusedBoss, 200) func attack(type: int): if type == 0: for bullet in BulletBase.generate(ComponentManager.getBullet("SwingSword"), self , getTrackingAnchor(), getTrackingAnchor().angle_to_point(currentFocusedPosition)):