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

Events can not happen on stairs

git-svn-id: http://svn.net-core.org/repos/t-engine4@5330 51575b47-30f0-44d4-a5cc-537603b46e54
parent 59e8a819
No related branches found
No related tags found
No related merge requests found
......@@ -1806,7 +1806,7 @@ function _M:doneEvent(id)
end
function _M:canEventGrid(level, x, y)
return game.player:canMove(x, y) and not level.map.attrs(x, y, "no_teleport") and not level.map:checkAllEntities("change_level")
return game.player:canMove(x, y) and not level.map.attrs(x, y, "no_teleport") and not level.map:checkAllEntities(x, y, "change_level")
end
function _M:startEvents()
......
......@@ -17,7 +17,7 @@
-- Nicolas Casalini "DarkGod"
-- darkgod@te4.org
local function canEventGrid(level,x,y) return not level.map.attrs(x, y, "no_teleport") and not level.map:checkAllEntities("change_level") end
local function canEventGrid(level,x,y) return not level.map.attrs(x, y, "no_teleport") and not level.map:checkAllEntities(x, y, "change_level") end
local function check(x, y)
local list = {}
......
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