ft: nucleotide prey FSM
This commit is contained in:
@@ -63,7 +63,7 @@ func _on_attack_hit(body: Node2D) -> void:
|
||||
var hit_hittable = false
|
||||
if body.is_in_group("prey") or body.is_in_group("predators"):
|
||||
if body.has_method("handle_damage"):
|
||||
body.handle_damage(damage)
|
||||
body.handle_damage(damage, self)
|
||||
hit_hittable = true
|
||||
elif body.is_in_group("resources"):
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user