This commit is contained in:
2025-01-31 15:09:31 +08:00
parent 6272cd86e8
commit 552d32ff70
4 changed files with 34 additions and 42 deletions
+2 -2
View File
@@ -9,12 +9,12 @@ func tick(actor: Node, blackboard: Blackboard) -> int:
if actor.action_points <= 0:
return FAILURE
if not actor.is_bot and not actor.is_in_group("Bots"):
if not actor.is_bot == true and not actor.is_in_group("Bots"):
return FAILURE
# Execute movement
if actor.is_within_movement_range(target_pos):
if actor.is_bot:
if actor.is_bot == true:
var path = actor.enhanced_gridmap.find_path(
Vector2(actor.current_position),
Vector2(target_pos),