From 6a2b122343286c489ad39a30b32750d39e1db9c4 Mon Sep 17 00:00:00 2001 From: 3002102 <3002102@stud.hs-mannheim.de> Date: Wed, 15 Apr 2026 17:47:27 +0200 Subject: [PATCH] fixed error in fireball due to the boom effect from upgrade (#6) Reviewed-on: https://gitty.informatik.hs-mannheim.de/3002102/gae_wild_jam/pulls/6 Co-authored-by: 3002102 <3002102@stud.hs-mannheim.de> Co-committed-by: 3002102 <3002102@stud.hs-mannheim.de> --- scripts/fireball.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/fireball.gd b/scripts/fireball.gd index 526921a..42421c0 100644 --- a/scripts/fireball.gd +++ b/scripts/fireball.gd @@ -10,6 +10,6 @@ func _on_body_entered(body: Node2D) -> void: if fireball_aoe: var boom = explosion_scene.instantiate() boom.global_position = global_position - get_parent().add_child(boom) + get_parent().call_deferred("add_child", boom) queue_free()