Skip to content
Snippets Groups Projects
Commit a4ccf9b1 authored by dg's avatar dg
Browse files

Non-moving creatures will not try to flee

git-svn-id: http://svn.net-core.org/repos/t-engine4@3464 51575b47-30f0-44d4-a5cc-537603b46e54
parent d34cbdc5
No related branches found
No related tags found
No related merge requests found
......@@ -37,6 +37,7 @@ local checkLOS = function(sx, sy, tx, ty)
end
local canFleeDmapKeepLos = function(self)
if self.never_move then return false end -- Dont move, dont flee
if self.ai_target.actor then
local act = self.ai_target.actor
local c = act:distanceMap(self.x, self.y)
......
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