From 82e0e8fa13980f89f775e15bae8cd499d6e75c8d Mon Sep 17 00:00:00 2001 From: anyreso Date: Tue, 30 Apr 2024 15:12:13 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=8A=20add=20warning=20about=20missing?= =?UTF-8?q?=20damage=5Fdealer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/entities/components/explosive_damage_component.gd | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/entities/components/explosive_damage_component.gd b/src/entities/components/explosive_damage_component.gd index 90f43d1..dfa595e 100644 --- a/src/entities/components/explosive_damage_component.gd +++ b/src/entities/components/explosive_damage_component.gd @@ -36,5 +36,7 @@ func _physics_process(_delta : float) -> void: if area is HealthComponent and is_multiplayer_authority(): if damage_dealer: (area as HealthComponent).damage.rpc(damage, damage_dealer.player_id, damage_dealer.team_id) + else: + push_warning("explosion has no damage_dealer") set_physics_process(false)