From 14961e3c6b6b82efed7464e2975564732e0c929d Mon Sep 17 00:00:00 2001 From: Jordan Leppert Date: Sun, 20 Mar 2022 12:03:26 +0000 Subject: [PATCH] Increasing vertical collision box when determining if pathfinding goal is inside box, fixes pathfinding with dragons --- methods.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/methods.lua b/methods.lua index 0fcd82c..9b0f254 100644 --- a/methods.lua +++ b/methods.lua @@ -184,7 +184,7 @@ local function movement_generic_pathfind(self, method, pos2, speed) end else temp_goal = self._path[1] - if self:pos_in_box(get_goal_pos(self, temp_goal)) then + if self:pos_in_box(get_goal_pos(self, temp_goal), {math.max(self.width, 0.5), self.height}) then table.remove(self._path, 1) if #self._path > 0 then temp_goal = self._path[1]