fixed error in fireball due to the boom effect from upgrade #6

Merged
3002102 merged 1 commits from fix/fireball-error into main 2026-04-15 17:47:27 +02:00
1 changed files with 1 additions and 1 deletions

View File

@ -10,6 +10,6 @@ func _on_body_entered(body: Node2D) -> void:
if fireball_aoe: if fireball_aoe:
var boom = explosion_scene.instantiate() var boom = explosion_scene.instantiate()
boom.global_position = global_position boom.global_position = global_position
get_parent().add_child(boom) get_parent().call_deferred("add_child", boom)
queue_free() queue_free()