fix turtle script error when killed while not spiking

This commit is contained in:
Haze Weathers 2023-07-08 11:54:01 -04:00
parent 1f77bc4513
commit 99a9595413

View file

@ -89,7 +89,8 @@ func die() -> void:
# disable spiking # disable spiking
can_spike = false can_spike = false
# stop tween # stop tween
spike_tween.kill() if spike_tween != null:
spike_tween.kill()
# disable hitbox # disable hitbox
spike_shape.set_deferred("disabled", true) spike_shape.set_deferred("disabled", true)
# reset animation # reset animation