do not throw stick into player

This commit is contained in:
2026-04-23 11:43:33 +03:00
parent 52d0b00655
commit 1b3732ea0f
+2
View File
@@ -153,6 +153,8 @@ func _try_enemy_kick() -> void:
var k := node as Node3D var k := node as Node3D
if k == null or not is_instance_valid(k): if k == null or not is_instance_valid(k):
continue continue
if k.get("kickable_type") == "stick":
continue
var kfv = k.get("fly_vel") var kfv = k.get("fly_vel")
if kfv != null and Vector2((kfv as Vector3).x, (kfv as Vector3).z).length() > 15.0: if kfv != null and Vector2((kfv as Vector3).x, (kfv as Vector3).z).length() > 15.0:
continue continue