diff options
author | bd <bdunahu@operationnull.com> | 2025-05-29 17:16:59 -0400 |
---|---|---|
committer | bd <bdunahu@operationnull.com> | 2025-05-29 17:16:59 -0400 |
commit | 85d7a4817421e6a6fc254c9d9676f7d0c6253c18 (patch) | |
tree | 13ed7b2ae67b6b7807ead2319e372bff4fabfeb7 | |
parent | 8ec9e91860722288f844e01938b7b6489aff122a (diff) |
(Probably) fix bug where wyvern stream would not be freed
-rw-r--r-- | scripts/wyvern.gd | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/wyvern.gd b/scripts/wyvern.gd index c60aa02..15717da 100644 --- a/scripts/wyvern.gd +++ b/scripts/wyvern.gd @@ -27,7 +27,7 @@ func _on_tower_body_entered(_body: Node2D) -> void: $FireTimer.start(tower_data["fire_delay"]) func _on_fire_timer_timeout(): - if (target != null): + if target && !firing: var stream : CharacterBody2D = _get_projectile() add_child(stream) stream.target = target |