🔊 add warning about missing damage_dealer

This commit is contained in:
anyreso 2024-04-30 15:12:13 -04:00
parent 6222bf0254
commit 82e0e8fa13

View file

@ -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)