diff --git a/scripts/Statemachine/EntityBase.gd b/scripts/Statemachine/EntityBase.gd index 9eddec6..3e8af5c 100644 --- a/scripts/Statemachine/EntityBase.gd +++ b/scripts/Statemachine/EntityBase.gd @@ -200,9 +200,8 @@ func tryAttack(type: int, needChargeUp: bool = false): charginup = true await EffectController.create(preload("res://components/Effects/AttackStar.tscn"), damageAnchor.global_position).shot() charginup = false - else: + if attack(type): playSound("attack" + str(type)) - attack(type) return state func trySprint(): trailing = true