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)):