diff --git a/modules/wave_survival/damage_box.cpp b/modules/wave_survival/damage_box.cpp index a25f487a..f7617d5a 100644 --- a/modules/wave_survival/damage_box.cpp +++ b/modules/wave_survival/damage_box.cpp @@ -33,9 +33,11 @@ void DamageBox::_notification(int what) { default: return; case NOTIFICATION_ENTER_TREE: - connect("body_entered", callable_mp(this, &self_type::on_body_entered)); - connect("area_entered", callable_mp(this, &self_type::on_body_entered)); - set_monitoring(false); + if (!is_ready()) { + connect("body_entered", callable_mp(this, &self_type::on_body_entered)); + connect("area_entered", callable_mp(this, &self_type::on_body_entered)); + set_monitoring(false); + } return; } } diff --git a/modules/wave_survival/enemies/enemy_wretched.cpp b/modules/wave_survival/enemies/enemy_wretched.cpp index e5ad83ca..b285bdc3 100644 --- a/modules/wave_survival/enemies/enemy_wretched.cpp +++ b/modules/wave_survival/enemies/enemy_wretched.cpp @@ -33,7 +33,9 @@ void EnemyWretched::_notification(int what) { default: return; case NOTIFICATION_ENTER_TREE: - connect("child_entered_tree", callable_mp(this, &self_type::on_child_entered)); + if (!is_ready()) { + connect("child_entered_tree", callable_mp(this, &self_type::on_child_entered)); + } return; case NOTIFICATION_READY: ready();