Skip to content
Snippets Groups Projects
Commit 24b8eaa5 authored by DarkGod's avatar DarkGod
Browse files

sanity

parent fff4b2e8
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -811,7 +811,7 @@ end
-- returns true/false (grid found?), grid x, grid y
function _M:aiCanFleeDmapKeepLos()
if self:attr("never_move") then return false end -- Dont move, dont flee
if self.ai_target.actor then
if self.ai_target.actor and self.ai_target.actor.distanceMap then
local act = self.ai_target.actor
local ax, ay = self:aiSeeTargetPos(act)
local dir, c
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment