Skip to content
Snippets Groups Projects
Commit 9259b440 authored by Chris Davidson's avatar Chris Davidson
Browse files

Fix aiCanPass executing attacks and swaps and not handling doors properly

parent 47bb7854
No related branches found
No related tags found
No related merge requests found
......@@ -71,7 +71,7 @@ end
function _M:aiCanPass(x, y)
-- Nothing blocks, just go on
if not game.level.map:checkAllEntities(x, y, "block_move", self, true) then return true end
if not game.level.map:checkAllEntities(x, y, "block_move", self, nil, true) then return true end
-- If there is an other actor, check hostility, if hostile, we move to attack
local target = game.level.map(x, y, Map.ACTOR)
......
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