This commit is contained in:
Twirpytherobot
2026-02-17 22:51:38 +00:00
parent 7629342540
commit 7fa2efabaf
7 changed files with 193 additions and 15 deletions
+4
View File
@@ -110,6 +110,10 @@ func _process_hit(hurtbox: HurtBox):
if hurtbox.owner_entity in _hits_this_attack:
return
# Enemies don't damage other enemies (only players)
if owner_entity is BaseEnemy and hurtbox.owner_entity is BaseEnemy:
return
# Register this hit
var target = hurtbox.owner_entity
if target: