heheh
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user